mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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)
7b1b36b1cb
This commit is contained in:
parent
30e8c1779f
commit
c3931495b2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user