diff options
author | w0rp <devw0rp@gmail.com> | 2021-03-20 22:11:22 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2021-03-20 22:11:42 +0000 |
commit | b1d833417bcb57e265e0d01df07b28f463529d4b (patch) | |
tree | 11421aeca89127b0cc9417f8ff4cb0d725199f49 /test/test_socket_connections.vader | |
parent | 3838ae118d8f05fa1b1be7952a1c8aa3055d6728 (diff) | |
download | ale-b1d833417bcb57e265e0d01df07b28f463529d4b.zip |
#3633 - Put all dummy test files in test/test-files
Diffstat (limited to 'test/test_socket_connections.vader')
-rw-r--r-- | test/test_socket_connections.vader | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_socket_connections.vader b/test/test_socket_connections.vader index 9ea5580d..c59b942d 100644 --- a/test/test_socket_connections.vader +++ b/test/test_socket_connections.vader @@ -30,13 +30,13 @@ Before: let g:port = 10347 let g:pid_tcp = str2nr(system( \ 'python' - \ . ' ' . ale#Escape(g:dir . '/dumb_tcp_server.py') + \ . ' ' . ale#Escape(g:dir . '/script/dumb_tcp_server.py') \ . ' ' . g:port \)) - let g:pipe_path = 'tmp_named_pipe' + let g:pipe_path = tempname() let g:pid_pipe = str2nr(system( \ 'python' - \ . ' ' . ale#Escape(g:dir . '/dumb_named_pipe_server.py') + \ . ' ' . ale#Escape(g:dir . '/script/dumb_named_pipe_server.py') \ . ' ' . g:pipe_path \)) endif @@ -104,7 +104,7 @@ Execute(Sending and receiving connections to tcp sockets should work): endif Execute(Sending and receiving connections to named pipe sockets should work): - if g:can_run_socket_tests && has('nvim') + if g:can_run_socket_tests && has('nvim-0.4') let g:channel_id = ale#socket#Open( \ g:pipe_path, \ {'callback': function('TestCallback')} @@ -131,9 +131,9 @@ Execute(Sending and receiving connections to named pipe sockets should work): endif " NeoVim versions which can't connect to sockets should just fail. - if has('nvim') && !exists('*chanclose') + if has('nvim-0.4') && !exists('*chanclose') AssertEqual -1, ale#socket#Open( - \ 'tmp_named_pipe', + \ g:pipe_path, \ {'callback': function('function')} \) endif |