mirror of
https://github.com/neovim/neovim.git
synced 2025-11-15 14:59:20 +00:00
test(api/server_requests_spec): fix flaky test (#36410)
Wait for the notification to be processed.
This commit is contained in:
@@ -313,7 +313,10 @@ describe('server -> client', function()
|
||||
|
||||
set_session(server)
|
||||
eq(serverpid, fn.getpid())
|
||||
eq('bye!', api.nvim_get_current_line())
|
||||
-- wait for the notification to be processed
|
||||
t.retry(nil, 1000, function()
|
||||
eq('bye!', api.nvim_get_current_line())
|
||||
end)
|
||||
|
||||
server:close()
|
||||
client:close()
|
||||
|
||||
Reference in New Issue
Block a user