test(rpc): retry flaky 'vim.rpcrequest and vim.rpcnotify' test

Problem: 'vim.rpcrequest and vim.rpcnotify' is flaky on Windows.

Solution: retry it.
This commit is contained in:
Christian Clason 2024-10-19 13:25:43 +02:00 committed by Christian Clason
parent 86832dcd19
commit 6fd13eedda

View File

@ -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)