Skip to content

Commit

Permalink
patch 9.0.1702: Undo test is flaky
Browse files Browse the repository at this point in the history
Problem:  Undo test is flaky.
Solution: Apply filter and change time to "1 second ago" in both dumps.

closes: #12771

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
  • Loading branch information
zeertzjq authored and chrisbra committed Aug 13, 2023
1 parent 2f339aa commit 9c30f43
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/testdir/dumps/Test_undo_after_write_1.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
" Filter that changes undo time message to "1 second ago".
6s+|\d| |s|e|c|o|n|d|s| |a|g|o| @19|+|1| |s|e|c|o|n|d| |a|g|o| @20|+e
4 changes: 2 additions & 2 deletions src/testdir/dumps/Test_undo_after_write_2.vim
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
" Filter that changes the "1 second ago" message to "0 seconds ago".
6s+|1| |s|e|c|o|n|d| |a|g|o| @18|+|0| |s|e|c|o|n|d|s| |a|g|o| @17|+e
" Filter that changes undo time message to "1 second ago".
6s+|\d| |s|e|c|o|n|d|s| |a|g|o| @17|+|1| |s|e|c|o|n|d| |a|g|o| @18|+e
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1702,
/**/
1701,
/**/
Expand Down

0 comments on commit 9c30f43

Please sign in to comment.