patch 8.0.1670: terminal window tests are still a bit flaky
Problem: Terminal window tests are still a bit flaky.
Solution: Increase the waiting time for the buffer to be created.
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim
index 218b4ca..cd7a2b2 100644
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -1061,7 +1061,7 @@
\ "set t_ts=",
\ ], 'Xscript')
let buf = RunVimInTerminal('-S Xscript', {})
- call WaitFor({-> bufnr('Xtextfile') > 0})
+ call WaitFor({-> bufnr('Xtextfile') > 0}, 2000)
call assert_equal('Xtextfile', expand('%:t'))
call assert_true(winnr('$') >= 3)
return buf