Skip to content

Commit 7b1b36b

Browse files
committed
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)
1 parent ee619e5 commit 7b1b36b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/testdir/test_excmd.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ func Test_confirm_cmd_cancel()
259259
call WaitForAssert({-> assert_match('^\[Y\]es, (N)o, (C)ancel: *$',
260260
\ term_getline(buf, 20))}, 1000)
261261
call term_sendkeys(buf, "C")
262-
call term_wait(buf, 50)
262+
call WaitForAssert({-> assert_equal('', term_getline(buf, 20))}, 1000)
263263
call term_sendkeys(buf, ":confirm close\n")
264264
call WaitForAssert({-> assert_match('^\[Y\]es, (N)o, (C)ancel: *$',
265265
\ term_getline(buf, 20))}, 1000)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
470,
741743
/**/
742744
469,
743745
/**/

0 commit comments

Comments
 (0)