aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-03-09 00:29:20 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-03-11 12:43:42 +0100
commit496b0f944fcbfd84db9e2dd625c6b756a3d1e467 (patch)
tree48342a3bec36558e3451191c3c8fa524c630fbef
parentfd4021387e696c7a2da4ad776789cfbb938d5332 (diff)
downloadrneovim-496b0f944fcbfd84db9e2dd625c6b756a3d1e467.tar.gz
rneovim-496b0f944fcbfd84db9e2dd625c6b756a3d1e467.tar.bz2
rneovim-496b0f944fcbfd84db9e2dd625c6b756a3d1e467.zip
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.
-rw-r--r--test/functional/helpers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index 72b086c574..b8d912114d 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -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)