diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-21 14:59:52 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-08-21 15:31:21 +0800 |
commit | ff801ce7f728ea51cec3328328ac41d98d545725 (patch) | |
tree | 77f32a689456eb082f39f585e0b16a97cd71ed73 /test/old/testdir/test_vimscript.vim | |
parent | ff37916b47658d16cdec6932aa8aaa3b5af674b7 (diff) | |
download | rneovim-ff801ce7f728ea51cec3328328ac41d98d545725.tar.gz rneovim-ff801ce7f728ea51cec3328328ac41d98d545725.tar.bz2 rneovim-ff801ce7f728ea51cec3328328ac41d98d545725.zip |
vim-patch:8.2.0533: tests using term_wait() can still be flaky
Problem: Tests using term_wait() can still be flaky.
Solution: Increase the wait time when rerunning a test. (James McCoy,
closes vim/vim#5899) Halve the initial times to make tests run faster
when there is no rerun.
https://github.com/vim/vim/commit/6a2c5a7dd5c9215cc030d5ea6e4616d782c091dd
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/old/testdir/test_vimscript.vim')
-rw-r--r-- | test/old/testdir/test_vimscript.vim | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/old/testdir/test_vimscript.vim b/test/old/testdir/test_vimscript.vim index 62487ae5d5..1072199f27 100644 --- a/test/old/testdir/test_vimscript.vim +++ b/test/old/testdir/test_vimscript.vim @@ -7249,30 +7249,30 @@ func Test_deep_nest() " Deep nesting of if ... endif call term_sendkeys(buf, ":call Test1()\n") - call term_wait(buf) + call TermWait(buf) call WaitForAssert({-> assert_match('^E579:', term_getline(buf, 5))}) " Deep nesting of for ... endfor call term_sendkeys(buf, ":call Test2()\n") - call term_wait(buf) + call TermWait(buf) call WaitForAssert({-> assert_match('^E585:', term_getline(buf, 5))}) " Deep nesting of while ... endwhile call term_sendkeys(buf, ":call Test3()\n") - call term_wait(buf) + call TermWait(buf) call WaitForAssert({-> assert_match('^E585:', term_getline(buf, 5))}) " Deep nesting of try ... endtry call term_sendkeys(buf, ":call Test4()\n") - call term_wait(buf) + call TermWait(buf) call WaitForAssert({-> assert_match('^E601:', term_getline(buf, 5))}) " Deep nesting of function ... endfunction call term_sendkeys(buf, ":call Test5()\n") - call term_wait(buf) + call TermWait(buf) call WaitForAssert({-> assert_match('^E1058:', term_getline(buf, 4))}) call term_sendkeys(buf, "\<C-C>\n") - call term_wait(buf) + call TermWait(buf) "let l = '' "for i in range(1, 6) |