mirror of
https://github.com/neovim/neovim.git
synced 2025-12-14 18:35:47 +00:00
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:
committed by
github-actions[bot]
parent
66b8018b06
commit
b74f74ba20
@@ -313,7 +313,10 @@ describe('server -> client', function()
|
|||||||
|
|
||||||
set_session(server)
|
set_session(server)
|
||||||
eq(serverpid, fn.getpid())
|
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()
|
server:close()
|
||||||
client:close()
|
client:close()
|
||||||
|
|||||||
Reference in New Issue
Block a user