summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_autocmd.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_autocmd.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_autocmd.vim')
-rw-r--r--src/testdir/test_autocmd.vim10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim
index f798916211..a8648f8c49 100644
--- a/src/testdir/test_autocmd.vim
+++ b/src/testdir/test_autocmd.vim
@@ -1761,9 +1761,9 @@ function s:Before_test_dirchanged()
augroup END
let s:li = []
let s:dir_this = getcwd()
- let s:dir_foo = s:dir_this . '/foo'
+ let s:dir_foo = s:dir_this . '/Xfoo'
call mkdir(s:dir_foo)
- let s:dir_bar = s:dir_this . '/bar'
+ let s:dir_bar = s:dir_this . '/Xbar'
call mkdir(s:dir_bar)
endfunc
@@ -2291,9 +2291,9 @@ func Test_autocmd_SafeState()
call WaitForAssert({-> assert_match('^xxx', term_getline(buf, 6))}, 1000)
call term_sendkeys(buf, ":let g:again = ''\<CR>:call CallTimer()\<CR>")
- call term_wait(buf, 100)
+ call TermWait(buf, 50)
call term_sendkeys(buf, ":\<CR>")
- call term_wait(buf, 100)
+ call TermWait(buf, 50)
call term_sendkeys(buf, ":echo g:again\<CR>")
call WaitForAssert({-> assert_match('xtx', term_getline(buf, 6))}, 1000)
@@ -2317,7 +2317,7 @@ func Test_autocmd_CmdWinEnter()
let buf = RunVimInTerminal('-S '.filename, #{rows: 6})
call term_sendkeys(buf, "q:")
- call term_wait(buf)
+ call TermWait(buf)
call term_sendkeys(buf, ":echo b:dummy_var\<cr>")
call WaitForAssert({-> assert_match('^This is a dummy', term_getline(buf, 6))}, 2000)
call term_sendkeys(buf, ":echo &buftype\<cr>")