aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-08 22:04:21 +0800
committerGitHub <noreply@github.com>2022-08-08 22:04:21 +0800
commitd31ee6664d3b8d37ac4bb95b3adad397e90a8da1 (patch)
treebc18de9f5ccdd8ec7e835e576972e3f816396c9e
parentd36c2fa7137d9e388e1a5d99f42cb11394bc8b77 (diff)
downloadrneovim-d31ee6664d3b8d37ac4bb95b3adad397e90a8da1.tar.gz
rneovim-d31ee6664d3b8d37ac4bb95b3adad397e90a8da1.tar.bz2
rneovim-d31ee6664d3b8d37ac4bb95b3adad397e90a8da1.zip
test: increse expect_exit() timeouts (#19680)
A timeout of 100 milliseconds is sometimes still too short for macOS. Change it to 1000 milliseconds.
-rw-r--r--test/functional/legacy/arglist_spec.lua2
-rw-r--r--test/functional/legacy/excmd_spec.lua6
2 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/legacy/arglist_spec.lua b/test/functional/legacy/arglist_spec.lua
index f90da16d7b..4d9e88c446 100644
--- a/test/functional/legacy/arglist_spec.lua
+++ b/test/functional/legacy/arglist_spec.lua
@@ -276,6 +276,6 @@ describe('argument list commands', function()
2 more files to edit. Quit anyway? |
[Y]es, (N)o: ^ |
]])
- expect_exit(100, feed, 'Y')
+ expect_exit(1000, feed, 'Y')
end)
end)
diff --git a/test/functional/legacy/excmd_spec.lua b/test/functional/legacy/excmd_spec.lua
index 65957d85de..ece88d26bd 100644
--- a/test/functional/legacy/excmd_spec.lua
+++ b/test/functional/legacy/excmd_spec.lua
@@ -94,7 +94,7 @@ describe(':confirm command dialog', function()
{3:Save changes to "Xbar"?} |
{3:[Y]es, (N)o, Save (A)ll, (D)iscard All, (C)ancel: }^ |
]])
- expect_exit(100, feed, 'A')
+ expect_exit(1000, feed, 'A')
eq('foo2\n', read_file('Xfoo'))
eq('bar2\n', read_file('Xbar'))
@@ -132,7 +132,7 @@ describe(':confirm command dialog', function()
{3:Save changes to "Xbar"?} |
{3:[Y]es, (N)o, Save (A)ll, (D)iscard All, (C)ancel: }^ |
]])
- expect_exit(100, feed, 'D')
+ expect_exit(1000, feed, 'D')
eq('foo2\n', read_file('Xfoo'))
eq('bar2\n', read_file('Xbar'))
@@ -193,7 +193,7 @@ describe(':confirm command dialog', function()
{3:Save changes to "Xfoo"?} |
{3:[Y]es, (N)o, (C)ancel: }^ |
]])
- expect_exit(100, feed, 'Y')
+ expect_exit(1000, feed, 'Y')
eq('foo4\n', read_file('Xfoo'))
eq('bar2\n', read_file('Xbar'))