From 0b0385ea6ac1e244bd62e4aec862aa9b6b6c1768 Mon Sep 17 00:00:00 2001 From: "neovim-backports[bot]" <175700243+neovim-backports[bot]@users.noreply.github.com> Date: Thu, 24 Oct 2024 11:45:24 +0800 Subject: [PATCH] test(rpc): retry flaky 'vim.rpcrequest and vim.rpcnotify' test (#30922) Problem: 'vim.rpcrequest and vim.rpcnotify' is flaky on Windows. Solution: retry it. (cherry picked from commit 6fd13eeddaf5db89c1b81cc7d3d3f1a7da5401a7) Co-authored-by: Christian Clason --- test/functional/lua/vim_spec.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/functional/lua/vim_spec.lua b/test/functional/lua/vim_spec.lua index dd0c3d3868..b38864c0a3 100644 --- a/test/functional/lua/vim_spec.lua +++ b/test/functional/lua/vim_spec.lua @@ -1338,7 +1338,9 @@ describe('lua stdlib', function() ]], } feed('') - 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)