From 54c6bafa1609f2d870874d0047b394670602350e Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 12 May 2018 21:12:12 +0200 Subject: patch 8.0.1823: test for terminal stdout redirection is flaky Problem: Test for terminal stdout redirection is flaky. Solution: Wait for the job to finish. --- src/testdir/test_terminal.vim | 1 + 1 file changed, 1 insertion(+) (limited to 'src/testdir') diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim index 14466900a..e9b69533d 100644 --- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -1502,6 +1502,7 @@ func Test_terminal_out_err() call assert_equal("this is standard out", readfile(outfile)[0]) call assert_equal('this is standard error', term_getline(buf, 1)) + call WaitForAssert({-> assert_equal('dead', job_status(term_getjob(buf)))}) exe buf . 'bwipe' call delete('Xechoerrout.sh') call delete(outfile) -- cgit v1.2.3