mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
test: next_msg(): default timeout to 10s
Infinite timeout results in hangs which waste time. If some test needs longer than 10s to wait for a message, it should specify the timeout explicitly.
This commit is contained in:
@@ -98,7 +98,7 @@ local function request(method, ...)
|
||||
end
|
||||
|
||||
local function next_msg(timeout)
|
||||
return session:next_message(timeout)
|
||||
return session:next_message(timeout and timeout or 10000)
|
||||
end
|
||||
|
||||
local function expect_twostreams(msgs1, msgs2)
|
||||
|
||||
Reference in New Issue
Block a user