mirror of
https://github.com/neovim/neovim.git
synced 2025-12-11 17:12:40 +00:00
test: inccommand_spec: retry unreliable test (#8311)
This commit is contained in:
@@ -1846,8 +1846,7 @@ describe("'inccommand' with 'gdefault'", function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
describe(":substitute", function()
|
describe(":substitute", function()
|
||||||
local screen = Screen.new(30,15)
|
local screen = Screen.new(30,15)
|
||||||
|
|
||||||
before_each(function()
|
before_each(function()
|
||||||
clear()
|
clear()
|
||||||
end)
|
end)
|
||||||
@@ -2471,8 +2470,13 @@ describe(":substitute", function()
|
|||||||
:%s/some\(thing\)\@!/every/^ |
|
:%s/some\(thing\)\@!/every/^ |
|
||||||
]])
|
]])
|
||||||
end)
|
end)
|
||||||
|
end)
|
||||||
|
|
||||||
|
it(':substitute with inccommand during :terminal activity', function()
|
||||||
|
retry(2, nil, function()
|
||||||
|
local screen = Screen.new(30,15)
|
||||||
|
clear()
|
||||||
|
|
||||||
it('with inccommand during :terminal activity', function()
|
|
||||||
command("set cmdwinheight=3")
|
command("set cmdwinheight=3")
|
||||||
if iswin() then
|
if iswin() then
|
||||||
feed([[:terminal for /L \%I in (1,1,5000) do @(echo xxx & echo xxx & echo xxx)<cr>]])
|
feed([[:terminal for /L \%I in (1,1,5000) do @(echo xxx & echo xxx & echo xxx)<cr>]])
|
||||||
@@ -2484,7 +2488,7 @@ describe(":substitute", function()
|
|||||||
common_setup(screen, 'split', 'foo bar baz\nbar baz fox\nbar foo baz')
|
common_setup(screen, 'split', 'foo bar baz\nbar baz fox\nbar foo baz')
|
||||||
command('wincmd =')
|
command('wincmd =')
|
||||||
|
|
||||||
-- Allow some terminal output.
|
-- Wait for terminal output.
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
bar baz fox |
|
bar baz fox |
|
||||||
bar foo ba^z |
|
bar foo ba^z |
|
||||||
@@ -2505,7 +2509,7 @@ describe(":substitute", function()
|
|||||||
|
|
||||||
feed('gg')
|
feed('gg')
|
||||||
feed(':%s/foo/ZZZ')
|
feed(':%s/foo/ZZZ')
|
||||||
sleep(50) -- Allow some terminal activity.
|
sleep(20) -- Allow some terminal activity.
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
{12:ZZZ} bar baz |
|
{12:ZZZ} bar baz |
|
||||||
bar baz fox |
|
bar baz fox |
|
||||||
@@ -2523,5 +2527,6 @@ describe(":substitute", function()
|
|||||||
{10:[Preview] }|
|
{10:[Preview] }|
|
||||||
:%s/foo/ZZZ^ |
|
:%s/foo/ZZZ^ |
|
||||||
]])
|
]])
|
||||||
|
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user