mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test(tui_spec): avoid race between nvim_paste and nvim_input (#21639)
Now that the TUI calls nvim_paste and nvim_input through RPC, the data race is much more likely, as nvim_paste is deferred while nvim_input is not. Add an expect_child_buf_lines() call to avoid the race.
This commit is contained in:
parent
63e0e77bd9
commit
ef18c9f9b0
@ -1076,8 +1076,7 @@ describe('TUI', function()
|
|||||||
wait_for_mode('i')
|
wait_for_mode('i')
|
||||||
-- "bracketed paste"
|
-- "bracketed paste"
|
||||||
feed_data('\027[200~'..expected..'\027[201~')
|
feed_data('\027[200~'..expected..'\027[201~')
|
||||||
-- FIXME: Data race between the two feeds
|
expect_child_buf_lines({expected})
|
||||||
if is_os('freebsd') then screen:sleep(1) end
|
|
||||||
feed_data(' end')
|
feed_data(' end')
|
||||||
expected = expected..' end'
|
expected = expected..' end'
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
|
Loading…
Reference in New Issue
Block a user