diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-08 21:50:25 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-08 21:50:25 +0200 |
commit | 6a2c5a7dd5c9215cc030d5ea6e4616d782c091dd (patch) | |
tree | c3c2d559b959ba7b6776212f5e071683b8079a96 /src/testdir/test_timers.vim | |
parent | 7035fd9d909c49cf5105a53753c1772c193d05b8 (diff) | |
download | vim-git-6a2c5a7dd5c9215cc030d5ea6e4616d782c091dd.tar.gz |
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_timers.vim')
-rw-r--r-- | src/testdir/test_timers.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_timers.vim b/src/testdir/test_timers.vim index 1a6391b9d..546df1ff7 100644 --- a/src/testdir/test_timers.vim +++ b/src/testdir/test_timers.vim @@ -398,9 +398,9 @@ func Test_timer_error_in_timer_callback() call WaitForAssert({-> assert_notequal('', term_getline(buf, 8))}) " GC must not run during timer callback, which can make Vim crash. - call term_wait(buf, 100) + call TermWait(buf, 50) call term_sendkeys(buf, "\<CR>") - call term_wait(buf, 100) + call TermWait(buf, 50) call assert_equal('run', job_status(job)) call term_sendkeys(buf, ":qall!\<CR>") |