mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
test: reduce flakiness in blocking wait tests (#32868)
This commit is contained in:
@@ -944,7 +944,13 @@ describe('jobs', function()
|
|||||||
echon "\nccc"
|
echon "\nccc"
|
||||||
endfunc
|
endfunc
|
||||||
]])
|
]])
|
||||||
feed_command('call PrintAndWait()')
|
feed(':call PrintAndWait()')
|
||||||
|
screen:expect([[
|
||||||
|
|
|
||||||
|
{1:~ }|*4
|
||||||
|
:call PrintAndWait()^ |
|
||||||
|
]])
|
||||||
|
feed('<CR>')
|
||||||
screen:expect {
|
screen:expect {
|
||||||
grid = [[
|
grid = [[
|
||||||
|
|
|
|
||||||
|
@@ -379,7 +379,13 @@ describe('ui/cursor', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it(':sleep does not hide cursor when sleeping', function()
|
it(':sleep does not hide cursor when sleeping', function()
|
||||||
n.feed(':sleep 300m | echo 42\n')
|
n.feed(':sleep 300m | echo 42')
|
||||||
|
screen:expect([[
|
||||||
|
|
|
||||||
|
{1:~ }|*3
|
||||||
|
:sleep 300m | echo 42^ |
|
||||||
|
]])
|
||||||
|
n.feed('\n')
|
||||||
screen:expect({
|
screen:expect({
|
||||||
grid = [[
|
grid = [[
|
||||||
^ |
|
^ |
|
||||||
@@ -396,7 +402,13 @@ describe('ui/cursor', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it(':sleep! hides cursor when sleeping', function()
|
it(':sleep! hides cursor when sleeping', function()
|
||||||
n.feed(':sleep! 300m | echo 42\n')
|
n.feed(':sleep! 300m | echo 42')
|
||||||
|
screen:expect([[
|
||||||
|
|
|
||||||
|
{1:~ }|*3
|
||||||
|
:sleep! 300m | echo 42^ |
|
||||||
|
]])
|
||||||
|
n.feed('\n')
|
||||||
screen:expect({
|
screen:expect({
|
||||||
grid = [[
|
grid = [[
|
||||||
|
|
|
|
||||||
|
@@ -2028,7 +2028,13 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim
|
|||||||
echon "\nccc"
|
echon "\nccc"
|
||||||
endfunc
|
endfunc
|
||||||
]]):format(to_block))
|
]]):format(to_block))
|
||||||
feed(':call PrintAndWait()<CR>')
|
feed(':call PrintAndWait()')
|
||||||
|
screen:expect([[
|
||||||
|
|
|
||||||
|
{1:~ }|*5
|
||||||
|
:call PrintAndWait()^ |
|
||||||
|
]])
|
||||||
|
feed('<CR>')
|
||||||
screen:expect {
|
screen:expect {
|
||||||
grid = [[
|
grid = [[
|
||||||
|
|
|
|
||||||
|
Reference in New Issue
Block a user