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 6fd13eedda)

Co-authored-by: Christian Clason <c.clason@uni-graz.at>
This commit is contained in:
neovim-backports[bot]
2024-10-24 11:45:24 +08:00
committed by GitHub
parent 84bbbd9fbe
commit 0b0385ea6a

View File

@ -1338,7 +1338,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)