comparison src/testdir/test_channel.vim @ 10454:f5c7c76897fa v8.0.0120

commit https://github.com/vim/vim/commit/5643db84c6a9f15d14492cefd52647623aa2ac7c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 3 14:29:10 2016 +0100 patch 8.0.0120 Problem: Channel test is still flaky on OS X. Solution: Set the drop argument to "never".
author Christian Brabandt <cb@256bit.org>
date Sat, 03 Dec 2016 14:30:04 +0100
parents a963dce191cf
children 095c9abae4ff
comparison
equal deleted inserted replaced
10453:15b87f017d8c 10454:f5c7c76897fa
24 let g:Ch_responseHandle = a:handle 24 let g:Ch_responseHandle = a:handle
25 let g:Ch_responseMsg = a:msg 25 let g:Ch_responseMsg = a:msg
26 endfunc 26 endfunc
27 27
28 func Ch_communicate(port) 28 func Ch_communicate(port)
29 " Avoid dropping messages, since we don't use a callback here.
30 let s:chopt.drop = 'never'
29 let handle = ch_open('localhost:' . a:port, s:chopt) 31 let handle = ch_open('localhost:' . a:port, s:chopt)
32 unlet s:chopt.drop
30 if ch_status(handle) == "fail" 33 if ch_status(handle) == "fail"
31 call assert_false(1, "Can't open channel") 34 call assert_false(1, "Can't open channel")
32 return 35 return
33 endif 36 endif
34 if has('job') 37 if has('job')