patch 9.0.1222: terminal tests are flaky on MacOS
Problem: Terminal tests are flaky on MacOS.
Solution: Add TermWait() calls. (Yegappan Lakshmanan, closes #11852)
diff --git a/src/testdir/test_terminal3.vim b/src/testdir/test_terminal3.vim
index f23bfd2..96a9e63 100644
--- a/src/testdir/test_terminal3.vim
+++ b/src/testdir/test_terminal3.vim
@@ -18,6 +18,7 @@
let cmd = "cat Xtext\<CR>"
let buf = term_start(&shell, {})
+ call TermWait(buf)
call writefile(["\<Esc>[?1047h"], 'Xtext', 'D')
call term_sendkeys(buf, cmd)
call WaitForAssert({-> assert_equal(1, term_getaltscreen(buf))})