diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-03-16 11:14:57 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-16 11:14:57 +0000 |
commit | 9323ca51c2b1522f26907a7b8879067245ebd1be (patch) | |
tree | 50edcc867075a9eb6f15ddd34755092b91f4c338 | |
parent | 056678184f679c2989b73bd48eda112f3c79a62f (diff) |
patch 8.2.4577: message test is flakyv8.2.4577
Problem: Message test is flaky. (Elimar Riesebieter)
Solution: Trigger the autocommand event only after startup is finished.
-rw-r--r-- | src/testdir/test_messages.vim | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/testdir/test_messages.vim b/src/testdir/test_messages.vim index d3c80bf6c3..32689b09ea 100644 --- a/src/testdir/test_messages.vim +++ b/src/testdir/test_messages.vim @@ -360,12 +360,13 @@ func Test_fileinfo_after_echo() hide buffer a.txt - set updatetime=1 - autocmd CursorHold * b b.txt | w | echo "'b' written" + autocmd CursorHold * buf b.txt | w | echo "'b' written" END call writefile(content, 'Xtest_fileinfo_after_echo') let buf = RunVimInTerminal('-S Xtest_fileinfo_after_echo', #{rows: 6}) + call term_sendkeys(buf, ":set updatetime=50\<CR>") + call term_sendkeys(buf, "0$") call VerifyScreenDump(buf, 'Test_fileinfo_after_echo', {}) call term_sendkeys(buf, ":q\<CR>") diff --git a/src/version.c b/src/version.c index c447509c87..ba0058b679 100644 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4577, +/**/ 4576, /**/ 4575, |