mirror of
https://github.com/vim/vim.git
synced 2025-10-04 05:25:06 -04:00
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 #5861)
This commit is contained in:
@@ -259,7 +259,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)
|
||||
|
Reference in New Issue
Block a user