aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-10-19 13:25:43 +0200
committerChristian Clason <ch.clason+github@icloud.com>2024-10-21 11:24:34 +0200
commit6fd13eeddaf5db89c1b81cc7d3d3f1a7da5401a7 (patch)
tree0be61b7b37f804debf3d8df410c541e18079ad64
parent86832dcd1922eee37acc26310f72aa70def1514b (diff)
downloadrneovim-6fd13eeddaf5db89c1b81cc7d3d3f1a7da5401a7.tar.gz
rneovim-6fd13eeddaf5db89c1b81cc7d3d3f1a7da5401a7.tar.bz2
rneovim-6fd13eeddaf5db89c1b81cc7d3d3f1a7da5401a7.zip
test(rpc): retry flaky 'vim.rpcrequest and vim.rpcnotify' test
Problem: 'vim.rpcrequest and vim.rpcnotify' is flaky on Windows. Solution: retry it.
-rw-r--r--test/functional/lua/vim_spec.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/lua/vim_spec.lua b/test/functional/lua/vim_spec.lua
index ccb45a9d26..cba6c89c16 100644
--- a/test/functional/lua/vim_spec.lua
+++ b/test/functional/lua/vim_spec.lua
@@ -1319,7 +1319,9 @@ describe('lua stdlib', function()
]],
}
feed('<cr>')
- eq({ 3, NIL }, api.nvim_get_var('yy'))
+ retry(10, nil, function()
+ eq({ 3, NIL }, api.nvim_get_var('yy'))
+ end)
exec_lua([[timer:close()]])
end)