comparison src/testdir/test_channel.vim @ 8420:f6d21a33d489 v7.4.1501

commit https://github.com/vim/vim/commit/38fd4bb2842df7634823b99c655b3896a7a2e988 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 6 16:38:28 2016 +0100 patch 7.4.1501 Problem: Garbage collection with an option channel is not tested. Solution: Call garbagecollect() in the test.
author Christian Brabandt <cb@256bit.org>
date Sun, 06 Mar 2016 16:45:04 +0100
parents 8894d595b786
children be45d4921f1f
comparison
equal deleted inserted replaced
8419:2c4cd788b860 8420:f6d21a33d489
143 else 143 else
144 call assert_equal(handle, s:responseHandle) 144 call assert_equal(handle, s:responseHandle)
145 unlet s:responseHandle 145 unlet s:responseHandle
146 endif 146 endif
147 call assert_equal('got it', s:responseMsg) 147 call assert_equal('got it', s:responseMsg)
148
149 " Collect garbage, tests that our handle isn't collected.
150 call garbagecollect()
148 151
149 " check setting options (without testing the effect) 152 " check setting options (without testing the effect)
150 call ch_setoptions(handle, {'callback': 's:NotUsed'}) 153 call ch_setoptions(handle, {'callback': 's:NotUsed'})
151 call ch_setoptions(handle, {'timeout': 1111}) 154 call ch_setoptions(handle, {'timeout': 1111})
152 call ch_setoptions(handle, {'mode': 'json'}) 155 call ch_setoptions(handle, {'mode': 'json'})