1
0
forked from aniani/vim

patch 8.2.1498: on slow systems tests can be flaky

Problem:    On slow systems tests can be flaky.
Solution:   Use TermWait() instead of term-wait(). (Yegappan Lakshmanan,
            closes #6756)
This commit is contained in:
Bram Moolenaar
2020-08-20 18:59:06 +02:00
parent 17f67547f3
commit 733d259a83
8 changed files with 39 additions and 37 deletions

View File

@@ -1898,9 +1898,9 @@ func Test_list_builtin_terminals()
CheckRunVimInTerminal
let buf = RunVimInTerminal('', #{rows: 14})
call term_sendkeys(buf, ":set cmdheight=3\<CR>")
call term_wait(buf, 100)
call TermWait(buf, 100)
call term_sendkeys(buf, ":set term=xxx\<CR>")
call term_wait(buf, 100)
call TermWait(buf, 100)
call assert_match('builtin_dumb', term_getline(buf, 11))
call assert_match('Not found in termcap', term_getline(buf, 12))
call StopVimInTerminal(buf)