aboutsummaryrefslogtreecommitdiff
path: root/test/unit/helpers.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-04-01 11:07:08 +0300
committerZyX <kp-pav@yandex.ru>2017-04-01 11:07:08 +0300
commit933d60bc2356c1e22b8dbf8f8847c5323bc1f7a7 (patch)
tree6ea6262e09c48c633243dd7e0355b87a1b5603bc /test/unit/helpers.lua
parent8de53157b691dd4ce604a5be0e2d9c3b6014bfdb (diff)
downloadrneovim-933d60bc2356c1e22b8dbf8f8847c5323bc1f7a7.tar.gz
rneovim-933d60bc2356c1e22b8dbf8f8847c5323bc1f7a7.tar.bz2
rneovim-933d60bc2356c1e22b8dbf8f8847c5323bc1f7a7.zip
unittests: Do not hang when error message is too long
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r--test/unit/helpers.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua
index f4e6194fc7..74b5b4e8bd 100644
--- a/test/unit/helpers.lua
+++ b/test/unit/helpers.lua
@@ -554,8 +554,6 @@ local function gen_itp(it)
end
else
sc.close(wr)
- sc.wait(child_pid)
- child_pid = nil
local function check()
local res = sc.read(rd, 2)
eq(2, #res)
@@ -570,6 +568,8 @@ local function gen_itp(it)
assert.just_fail(err)
end
local err, emsg = pcall(check)
+ sc.wait(child_pid)
+ child_pid = nil
sc.close(rd)
if not err then
if allow_failure then