test: adjust exit waits for slow CI (#40739)

This commit is contained in:
Barrett Ruth
2026-07-14 16:37:28 -05:00
committed by GitHub
parent 9cbb8e24c7
commit 4b69d3fd2d
3 changed files with 5 additions and 5 deletions

View File

@@ -167,7 +167,7 @@ describe('autocmd TermClose', function()
end)
feed('<c-c>')
n.poke_eventloop() -- Wait for input to be flushed
n.expect_exit(1000, feed, ':qa!<cr>')
n.expect_exit(n.load_adjust(1000), feed, ':qa!<cr>')
end)
it('exposes v:event.status', function()

View File

@@ -46,6 +46,6 @@ describe('argument list commands', function()
{6:2 more files to edit. Quit anyway?} |
{6:[Y]es, (N)o: }^ |
]])
expect_exit(1000, feed, 'Y')
expect_exit(n.load_adjust(1000), feed, 'Y')
end)
end)

View File

@@ -52,7 +52,7 @@ describe(':confirm command dialog', function()
{6:Save changes to "Xbar"?} |
{6:[Y]es, (N)o, Save (A)ll, (D)iscard All, (C)ancel: }^ |
]])
expect_exit(1000, feed, 'A')
expect_exit(n.load_adjust(1000), feed, 'A')
eq('foo2\n', read_file('Xfoo'))
eq('bar2\n', read_file('Xbar'))
@@ -82,7 +82,7 @@ describe(':confirm command dialog', function()
{6:Save changes to "Xbar"?} |
{6:[Y]es, (N)o, Save (A)ll, (D)iscard All, (C)ancel: }^ |
]])
expect_exit(1000, feed, 'D')
expect_exit(n.load_adjust(1000), feed, 'D')
eq('foo2\n', read_file('Xfoo'))
eq('bar2\n', read_file('Xbar'))
@@ -128,7 +128,7 @@ describe(':confirm command dialog', function()
{6:Save changes to "Xfoo"?} |
{6:[Y]es, (N)o, (C)ancel: }^ |
]])
expect_exit(1000, feed, 'Y')
expect_exit(n.load_adjust(1000), feed, 'Y')
eq('foo4\n', read_file('Xfoo'))
eq('bar2\n', read_file('Xbar'))