diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-14 07:12:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 07:12:42 +0800 |
commit | f64f6706e58061f0a3de530edd1f10e331cd1525 (patch) | |
tree | 981f0a06a5d17e15a2a81e8fa8ae306a4e044737 | |
parent | 8f69c5ed450337b9f77c50f9ee0d3eb32f649ca6 (diff) | |
download | rneovim-f64f6706e58061f0a3de530edd1f10e331cd1525.tar.gz rneovim-f64f6706e58061f0a3de530edd1f10e331cd1525.tar.bz2 rneovim-f64f6706e58061f0a3de530edd1f10e331cd1525.zip |
vim-patch:9.0.1449: test for prompt buffer is flaky (#23076)
Problem: Test for prompt buffer is flaky.
Solution: Use WaitForAssert() instead of TermWait(). (Ozaki Kiichi,
closes vim/vim#12247)
https://github.com/vim/vim/commit/ff6c230051ed2a2dbbbd517f51fe00c8ea27961b
-rw-r--r-- | test/old/testdir/test_prompt_buffer.vim | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/test/old/testdir/test_prompt_buffer.vim b/test/old/testdir/test_prompt_buffer.vim index 2cc3f19b59..3dfbbcece6 100644 --- a/test/old/testdir/test_prompt_buffer.vim +++ b/test/old/testdir/test_prompt_buffer.vim @@ -283,20 +283,16 @@ func Test_prompt_appending_while_hidden() call TermWait(buf) call term_sendkeys(buf, "exit\<CR>") - call TermWait(buf) - call assert_notmatch('-- INSERT --', term_getline(buf, 10)) + call WaitForAssert({-> assert_notmatch('-- INSERT --', term_getline(buf, 10))}) call term_sendkeys(buf, ":call DoAppend()\<CR>") - call TermWait(buf) - call assert_notmatch('-- INSERT --', term_getline(buf, 10)) + call WaitForAssert({-> assert_notmatch('-- INSERT --', term_getline(buf, 10))}) call term_sendkeys(buf, "i") - call TermWait(buf) - call assert_match('-- INSERT --', term_getline(buf, 10)) + call WaitForAssert({-> assert_match('-- INSERT --', term_getline(buf, 10))}) call term_sendkeys(buf, "\<C-R>=DoAppend()\<CR>") - call TermWait(buf) - call assert_match('-- INSERT --', term_getline(buf, 10)) + call WaitForAssert({-> assert_match('-- INSERT --', term_getline(buf, 10))}) call term_sendkeys(buf, "\<Esc>") call StopVimInTerminal(buf) |