diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-02-05 22:36:41 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-02-05 22:36:41 +0100 |
commit | 4d919d748e4e435edb135aa5ccf6ee7de9212023 (patch) | |
tree | 6930f368370491e5774310f3ce80ab1772525049 /src/testdir | |
parent | a07fec9c85d062acd9dd433a2e681770f459ba47 (diff) |
patch 7.4.1263v7.4.1263
Problem: ch_open() hangs when the server isn't running.
Solution: Add a timeout. Use a dict to pass arguments. (Yasuhiro Matsumoto)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_channel.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim index e76c524ffa..0966101210 100644 --- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -57,7 +57,7 @@ func s:start_server() endif let s:port = l[0] - let handle = ch_open('localhost:' . s:port, 'json') + let handle = ch_open('localhost:' . s:port) return handle endfunc @@ -128,7 +128,7 @@ func Test_two_channels() endif call assert_equal('got it', ch_sendexpr(handle, 'hello!')) - let newhandle = ch_open('localhost:' . s:port, 'json') + let newhandle = ch_open('localhost:' . s:port) call assert_equal('got it', ch_sendexpr(newhandle, 'hello!')) call assert_equal('got it', ch_sendexpr(handle, 'hello!')) |