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:
Justin M. Keyes
2018-03-09 00:29:20 +01:00
parent fd4021387e
commit 496b0f944f

View File

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