diff 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
line wrap: on
line diff
--- a/src/testdir/test_channel.vim
+++ b/src/testdir/test_channel.vim
@@ -831,6 +831,7 @@ func Run_pipe_through_sort(all, use_buff
   call assert_equal("dead", job_status(g:job))
 
   sp sortout
+  call WaitFor('line("$") > 3')
   call assert_equal('Reading from channel output...', getline(1))
   if a:all
     call assert_equal(['aaa', 'bbb', 'ccc', 'ddd', 'eee'], getline(2, 6))