diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-20 18:59:06 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-20 18:59:06 +0200 |
commit | 733d259a83bfdd3e1670cc1665e1bd56501799df (patch) | |
tree | c570802fe9e1ebda08989283fe5c0d677d55d423 /src/testdir/test_terminal.vim | |
parent | 17f67547f36a06220ea4667aaee7bb130108f568 (diff) | |
download | vim-git-733d259a83bfdd3e1670cc1665e1bd56501799df.tar.gz |
patch 8.2.1498: on slow systems tests can be flakyv8.2.1498
Problem: On slow systems tests can be flaky.
Solution: Use TermWait() instead of term-wait(). (Yegappan Lakshmanan,
closes #6756)
Diffstat (limited to 'src/testdir/test_terminal.vim')
-rw-r--r-- | src/testdir/test_terminal.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim index 982b46474..17eba9cd4 100644 --- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -264,11 +264,11 @@ func Test_terminal_one_column() let width = &columns botright vert term let buf = bufnr('$') - call term_wait(buf, 100) + call TermWait(buf, 100) exe "set columns=" .. (width / 2) redraw call term_sendkeys(buf, "キ") - call term_wait(buf, 10) + call TermWait(buf, 10) exe "set columns=" .. width exe buf . 'bwipe!' endfunc @@ -1221,7 +1221,7 @@ func Test_terminal_dumpwrite_errors() CheckRunVimInTerminal call assert_fails("call term_dumpwrite({}, 'Xtest.dump')", 'E728:') let buf = RunVimInTerminal('', {}) - call term_wait(buf) + call TermWait(buf) call assert_fails("call term_dumpwrite(buf, 'Xtest.dump', '')", 'E715:') call assert_fails("call term_dumpwrite(buf, [])", 'E730:') call writefile([], 'Xtest.dump') @@ -1231,7 +1231,7 @@ func Test_terminal_dumpwrite_errors() call assert_fails("call term_dumpwrite(buf, test_null_string())", 'E482:') call test_garbagecollect_now() call StopVimInTerminal(buf) - call term_wait(buf) + call TermWait(buf) call assert_fails("call term_dumpwrite(buf, 'Xtest.dump')", 'E958:') call assert_fails('call term_sendkeys([], ":q\<CR>")', 'E745:') call assert_equal(0, term_sendkeys(buf, ":q\<CR>")) |