mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.0.0539: long message test can be flaky (#20282)
Problem: Long message test can be flaky.
Solution: Wait for more prompt instead of ruler.
21d393a12b
Comment N/A lines out instead of deleting in buftype tests.
This commit is contained in:
parent
7fc5f6605f
commit
a7f6f0e2dd
@ -533,7 +533,9 @@ func Test_BufReadCmdNofile()
|
||||
\ 'acwrite',
|
||||
\ 'quickfix',
|
||||
\ 'help',
|
||||
"\ 'terminal',
|
||||
\ 'prompt',
|
||||
"\ 'popup',
|
||||
\ ]
|
||||
new somefile
|
||||
exe 'set buftype=' .. val
|
||||
@ -650,7 +652,9 @@ func Test_BufEnter()
|
||||
\ 'acwrite',
|
||||
\ 'quickfix',
|
||||
\ 'help',
|
||||
"\ 'terminal',
|
||||
\ 'prompt',
|
||||
"\ 'popup',
|
||||
\ ]
|
||||
new somefile
|
||||
exe 'set buftype=' .. val
|
||||
|
@ -1898,7 +1898,9 @@ func Test_bufadd_bufload()
|
||||
\ ['acwrite', 1],
|
||||
\ ['quickfix', 0],
|
||||
\ ['help', 1],
|
||||
"\ ['terminal', 0],
|
||||
\ ['prompt', 0],
|
||||
"\ ['popup', 0],
|
||||
\ ]
|
||||
bwipe! XotherName
|
||||
let buf = bufadd('XotherName')
|
||||
|
@ -358,7 +358,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', {})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user