patch 8.0.1116: terminal test fails on MS-Windows
Problem: Terminal test fails on MS-Windows.
Solution: Wait for the text to appear. (micbou, closes #2097)
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim
index 4a639bd..96edf41 100644
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -634,7 +634,8 @@
call assert_equal('456', maparg('123', 't'))
call assert_equal('abcde', maparg('456', 't'))
call feedkeys("123", 'tx')
- call term_wait(buf)
+ let g:buf = buf
+ call WaitFor("term_getline(g:buf,term_getcursor(g:buf)[0]) =~ 'abcde\\|456'")
let lnum = term_getcursor(buf)[0]
if a:remap
call assert_match('abcde', term_getline(buf, lnum))