diff src/testdir/test_messages.vim @ 30407:cc3b3fd9cb27 v9.0.0539

patch 9.0.0539: long message test can be flaky Commit: https://github.com/vim/vim/commit/21d393a12be86126d9326ea0c244d3a101b77151 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 22 12:01:34 2022 +0100 patch 9.0.0539: long message test can be flaky Problem: Long message test can be flaky. Solution: Wait for more prompt instead of ruler.
author Bram Moolenaar <Bram@vim.org>
date Thu, 22 Sep 2022 13:15:04 +0200
parents c8c7adcf2ddc
children f85930a64d7b
line wrap: on
line diff
--- a/src/testdir/test_messages.vim
+++ b/src/testdir/test_messages.vim
@@ -366,7 +366,8 @@ func Test_quit_long_message()
     echom range(9999)->join("\x01")
   END
   call writefile(content, 'Xtest_quit_message')
-  let buf = RunVimInTerminal('-S Xtest_quit_message', #{rows: 6})
+  let buf = RunVimInTerminal('-S Xtest_quit_message', #{rows: 6, wait_for_ruler: 0})
+  call WaitForAssert({-> assert_match('^-- More --', term_getline(buf, 6))})
   call term_sendkeys(buf, "q")
   call VerifyScreenDump(buf, 'Test_quit_long_message', {})