summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_startup.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-08 21:50:25 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-08 21:50:25 +0200
commit6a2c5a7dd5c9215cc030d5ea6e4616d782c091dd (patch)
treec3c2d559b959ba7b6776212f5e071683b8079a96 /src/testdir/test_startup.vim
parent7035fd9d909c49cf5105a53753c1772c193d05b8 (diff)
patch 8.2.0533: tests using term_wait() can still be flakyv8.2.0533
Problem: Tests using term_wait() can still be flaky. Solution: Increase the wait time when rerunning a test. (James McCoy, closes #5899) Halve the initial times to make tests run faster when there is no rerun.
Diffstat (limited to 'src/testdir/test_startup.vim')
-rw-r--r--src/testdir/test_startup.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_startup.vim b/src/testdir/test_startup.vim
index f532c43b26..5eff1bdf35 100644
--- a/src/testdir/test_startup.vim
+++ b/src/testdir/test_startup.vim
@@ -795,9 +795,9 @@ func Test_missing_vimrc()
let cmd = GetVimCommandCleanTerm() . ' -u Xvimrc_missing -S Xafter'
let buf = term_start(cmd, {'term_rows' : 10})
call WaitForAssert({-> assert_equal("running", term_getstatus(buf))})
- call term_wait(buf)
+ call TermWait(buf)
call term_sendkeys(buf, "\n:")
- call term_wait(buf)
+ call TermWait(buf)
call WaitForAssert({-> assert_match(':', term_getline(buf, 10))})
call StopVimInTerminal(buf)
call assert_equal([], readfile('Xtestout'))