@@ -129,6 +129,9 @@ func Ch_communicate(port)
129129 call ch_setoptions (handle, {' mode' : ' json' })
130130 call assert_fails (" call ch_setoptions(handle, {'waittime': 111})" , " E475" )
131131 call ch_setoptions (handle, {' callback' : ' ' })
132+ call ch_setoptions (handle, {' drop' : ' never' })
133+ call ch_setoptions (handle, {' drop' : ' auto' })
134+ call assert_fails (" call ch_setoptions(handle, {'drop': 'bad'})" , " E475" )
132135
133136 " Send an eval request that works.
134137 call assert_equal (' ok' , ch_evalexpr (handle, ' eval-works' ))
@@ -249,6 +252,7 @@ endfunc
249252" """"""""
250253
251254func Ch_handler (chan, msg)
255+ call ch_log (' Ch_handler()' )
252256 unlet g: Ch_reply
253257 let g: Ch_reply = a: msg
254258endfunc
@@ -272,6 +276,7 @@ func Ch_channel_handler(port)
272276endfunc
273277
274278func Test_channel_handler ()
279+ call ch_logfile (' channellog' , ' w' )
275280 call ch_log (' Test_channel_handler()' )
276281 let g: Ch_reply = " "
277282 let s: chopt .callback = ' Ch_handler'
@@ -437,7 +442,7 @@ func Test_raw_pipe()
437442 " Add a dummy close callback to avoid that messages are dropped when calling
438443 " ch_canread().
439444 let job = job_start (s: python . " test_channel_pipe.py" ,
440- \ {' mode' : ' raw' , ' close_cb ' : {chan - > 0 } })
445+ \ {' mode' : ' raw' , ' drop ' : ' never ' })
441446 call assert_equal (v: t_job , type (job))
442447 call assert_equal (" run" , job_status (job))
443448
0 commit comments