aboutsummaryrefslogtreecommitdiff
path: root/test/functional/fixtures
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-09-20 22:03:16 +0200
committerbfredl <bjorn.linse@gmail.com>2022-09-22 10:38:11 +0200
commit02f8ca59a80cd3570593c717ff6ceadc33239b89 (patch)
treeffe2148ab3193f2c122ed43e9655e3179b17c1e5 /test/functional/fixtures
parent93b30582db520ae20d66b000053007c11b62c15d (diff)
downloadrneovim-02f8ca59a80cd3570593c717ff6ceadc33239b89.tar.gz
rneovim-02f8ca59a80cd3570593c717ff6ceadc33239b89.tar.bz2
rneovim-02f8ca59a80cd3570593c717ff6ceadc33239b89.zip
fix(tests): indicate in test logs when nvim exit times out
When it happens it wastes 2 seconds which is NOT included in the normal busted timing info. It is hard to correct this, but we can at least print a warning when this happens.
Diffstat (limited to 'test/functional/fixtures')
-rw-r--r--test/functional/fixtures/start/nvim-leftpad/lua/async_leftpad.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/fixtures/start/nvim-leftpad/lua/async_leftpad.lua b/test/functional/fixtures/start/nvim-leftpad/lua/async_leftpad.lua
index a312572c5b..45226ce24b 100644
--- a/test/functional/fixtures/start/nvim-leftpad/lua/async_leftpad.lua
+++ b/test/functional/fixtures/start/nvim-leftpad/lua/async_leftpad.lua
@@ -1,3 +1,5 @@
return function (val, res)
- vim.loop.new_async(function() _G[res] = require'leftpad'(val) end):send()
+ local handle
+ handle = vim.loop.new_async(function() _G[res] = require'leftpad'(val) handle:close() end)
+ handle:send()
end