test_channel "sporadically" fails on my Macs. When it fails (in Test_communicate()), the output from the server looks like:
received: [3,"eval-works"] sending: ["eval","\"foo\" . 123", -1] sending: [3, "ok"] received: [4,"eval-result"][-1,"foo123"] so it receives [4,"eval-result"] before [-1,"foo123"]. I think we need more 'sleep 10m' on the client side. diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim index 80ccb08..f4c8e57 100644 --- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -88,14 +88,17 @@ func Test_communicate() " Send an eval request that works. call assert_equal('ok', ch_sendexpr(handle, 'eval-works')) + sleep 10m call assert_equal([-1, 'foo123'], ch_sendexpr(handle, 'eval-result')) " Send an eval request that fails. call assert_equal('ok', ch_sendexpr(handle, 'eval-fails')) + sleep 10m call assert_equal([-2, 'ERROR'], ch_sendexpr(handle, 'eval-result')) " Send a bad eval request. There will be no response. call assert_equal('ok', ch_sendexpr(handle, 'eval-bad')) + sleep 10m call assert_equal([-2, 'ERROR'], ch_sendexpr(handle, 'eval-result')) " make the server quit, can't check if this works, should not hang. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.