mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
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:
parent
1de5b041a7
commit
da13d9a30c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user