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.
This commit is contained in:
Matthew Malcomson 2017-10-28 17:01:38 +01:00 committed by Justin M. Keyes
parent 1de5b041a7
commit da13d9a30c

View File

@ -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)