comparison src/testdir/test_channel.vim @ 10090:68303019acc9 v7.4.2316

commit https://github.com/vim/vim/commit/f7f3e32fcc4984d87f26337316379c2e2d90f7f1 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 3 18:47:24 2016 +0200 patch 7.4.2316 Problem: Channel sort test is flaky. Solution: Add a check the output has been read.
author Christian Brabandt <cb@256bit.org>
date Sat, 03 Sep 2016 19:00:06 +0200
parents cf9e550f17f6
children 65afd399ffa7
comparison
equal deleted inserted replaced
10089:bf95df5089da 10090:68303019acc9
829 829
830 call WaitFor('job_status(g:job) == "dead"') 830 call WaitFor('job_status(g:job) == "dead"')
831 call assert_equal("dead", job_status(g:job)) 831 call assert_equal("dead", job_status(g:job))
832 832
833 sp sortout 833 sp sortout
834 call WaitFor('line("$") > 3')
834 call assert_equal('Reading from channel output...', getline(1)) 835 call assert_equal('Reading from channel output...', getline(1))
835 if a:all 836 if a:all
836 call assert_equal(['aaa', 'bbb', 'ccc', 'ddd', 'eee'], getline(2, 6)) 837 call assert_equal(['aaa', 'bbb', 'ccc', 'ddd', 'eee'], getline(2, 6))
837 else 838 else
838 call assert_equal(['aaa', 'bbb', 'ddd'], getline(2, 4)) 839 call assert_equal(['aaa', 'bbb', 'ddd'], getline(2, 4))