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

Wait for the notification to be processed.

(cherry picked from commit 2b83237b0f)
This commit is contained in:
zeertzjq
2025-10-31 22:06:11 +08:00
committed by github-actions[bot]
parent 66b8018b06
commit b74f74ba20

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