aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-04-18 19:58:05 +0200
committerGitHub <noreply@github.com>2018-04-18 19:58:05 +0200
commita1530ece87c329363b40ea92e71097b783ad5215 (patch)
tree44ef219ccf48b438daba99a29acae9c43deac4c9 /test/functional/helpers.lua
parent7a13611ba2033766da8cad73f46362bd01632c2c (diff)
parent522443d6bfa155a71968e886cc7869c2d370cc47 (diff)
downloadrneovim-a1530ece87c329363b40ea92e71097b783ad5215.tar.gz
rneovim-a1530ece87c329363b40ea92e71097b783ad5215.tar.bz2
rneovim-a1530ece87c329363b40ea92e71097b783ad5215.zip
Merge #8293 from justinmk/test-nodejs
test: nodejs_spec: allow more time for nodejs init
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index 03c6f3bbaa..e690fe350d 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -306,10 +306,7 @@ local function retry(max, max_ms, fn)
end
luv.update_time() -- Update cached value of luv.now() (libuv: uv_now()).
if (max and tries >= max) or (luv.now() - start_time > timeout) then
- if type(result) == "string" then
- result = "\nretry() attempts: "..tostring(tries).."\n"..result
- end
- error(result)
+ error("\nretry() attempts: "..tostring(tries).."\n"..tostring(result))
end
tries = tries + 1
end