test(api/server_requests_spec): fix flaky test (#36410)

Wait for the notification to be processed.
This commit is contained in:
zeertzjq
2025-10-31 22:06:11 +08:00
committed by GitHub
parent ceeae3a210
commit 2b83237b0f

View File

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