aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-01-02 18:49:21 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-01-02 18:49:25 -0500
commitc3931495b28776dc8eec4814aa469522e37b179b (patch)
tree2e0ea30104ea93d28d061cc67c231c489367640f
parent30e8c1779f3b07e7d1cb76e0b880c8fb71e3cebf (diff)
downloadrneovim-c3931495b28776dc8eec4814aa469522e37b179b.tar.gz
rneovim-c3931495b28776dc8eec4814aa469522e37b179b.tar.bz2
rneovim-c3931495b28776dc8eec4814aa469522e37b179b.zip
vim-patch:8.2.0470: Test_confirm_cmd_cancel() can fail on a slow system
Problem: Test_confirm_cmd_cancel() can fail on a slow system. Solution: Use WaitForAssert(). (Ozaki Kiichi, closes vim/vim#5861) https://github.com/vim/vim/commit/7b1b36b1cb744e87adfbef88b7ce26c863b0594a
-rw-r--r--src/nvim/testdir/test_excmd.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_excmd.vim b/src/nvim/testdir/test_excmd.vim
index 1b4859ad6d..9afb2b3b66 100644
--- a/src/nvim/testdir/test_excmd.vim
+++ b/src/nvim/testdir/test_excmd.vim
@@ -111,7 +111,7 @@ func Test_confirm_cmd_cancel()
call WaitForAssert({-> assert_match('^\[Y\]es, (N)o, (C)ancel: *$',
\ term_getline(buf, 20))}, 1000)
call term_sendkeys(buf, "C")
- call term_wait(buf, 50)
+ call WaitForAssert({-> assert_equal('', term_getline(buf, 20))}, 1000)
call term_sendkeys(buf, ":confirm close\n")
call WaitForAssert({-> assert_match('^\[Y\]es, (N)o, (C)ancel: *$',
\ term_getline(buf, 20))}, 1000)