mirror of
https://github.com/neovim/neovim.git
synced 2025-12-12 17:42:37 +00:00
test: unreliable "channel opened, ..., deleted by pressing a key"
Problem:
Test sometimes fails on macos:
test/functional/terminal/channel_spec.lua:96: Expected objects to be the same.
Passed in:
(number) 3
Expected:
(number) 2
Solution:
Retry a few times.
This commit is contained in:
@@ -92,7 +92,9 @@ describe('terminal channel is closed and later released if', function()
|
||||
poke_eventloop()
|
||||
feed('<Ignore>') -- add input to separate two RPC requests
|
||||
-- channel has been released after another main loop iteration
|
||||
eq(chans - 1, eval('len(nvim_list_chans())'))
|
||||
t.retry(20, nil, function()
|
||||
eq(chans - 1, eval('len(nvim_list_chans())'))
|
||||
end)
|
||||
end)
|
||||
|
||||
-- This indirectly covers #16264
|
||||
|
||||
Reference in New Issue
Block a user