aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ex_cmds/ctrl_c_spec.lua
diff options
context:
space:
mode:
authorMatthew Malcomson <hardenedapple@gmail.com>2017-10-28 17:01:38 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-10-28 18:01:38 +0200
commitda13d9a30cf7a5428649a24f8761ae1d5dbc1f02 (patch)
treea88b035354459c80678f0b9584076eec111d1ec2 /test/functional/ex_cmds/ctrl_c_spec.lua
parent1de5b041a729b56c49eac74a9ca060cbf35569c1 (diff)
downloadrneovim-da13d9a30cf7a5428649a24f8761ae1d5dbc1f02.tar.gz
rneovim-da13d9a30cf7a5428649a24f8761ae1d5dbc1f02.tar.bz2
rneovim-da13d9a30cf7a5428649a24f8761ae1d5dbc1f02.zip
test: ctrl_c_spec: bias timeouts for success (#7451)
Having timeouts that are likely to fail incurs a penalty of waiting for screen:expect() to fail, hence removing such small timeouts will speed up the test on average.
Diffstat (limited to 'test/functional/ex_cmds/ctrl_c_spec.lua')
-rw-r--r--test/functional/ex_cmds/ctrl_c_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/ex_cmds/ctrl_c_spec.lua b/test/functional/ex_cmds/ctrl_c_spec.lua
index 091a008814..8f76099f79 100644
--- a/test/functional/ex_cmds/ctrl_c_spec.lua
+++ b/test/functional/ex_cmds/ctrl_c_spec.lua
@@ -47,7 +47,7 @@ describe("CTRL-C (mapped)", function()
end
-- The test is time-sensitive. Try different sleep values.
- local ms_values = {1, 10, 100, 1000, 10000}
+ local ms_values = {100, 1000, 10000}
for i, ms in ipairs(ms_values) do
if i < #ms_values then
local status, _ = pcall(test_ctrl_c, ms)