commit 00e9c6955125fdbded208d4b5af59b94e96d7ea8
parent bf7c7adb40fe2634c632c2ea7a003ada8cca45c3
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed, 27 Mar 2024 11:22:20 +0800
test(tui_spec): fix flaky test for isolated "stop paste" (#28053)
In rare cases there may be multiple chunks of phase 2 because of timing.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua
@@ -1485,7 +1485,8 @@ describe('TUI', function()
feed_data('\027[201~') -- phase 3
screen:expect_unchanged()
local _, rv = child_session:request('nvim_exec_lua', [[return _G.paste_phases]], {})
- eq({ 1, 2, 3 }, rv)
+ -- In rare cases there may be multiple chunks of phase 2 because of timing.
+ eq({ 1, 2, 3 }, { rv[1], rv[2], rv[#rv] })
end)
it('allows termguicolors to be set at runtime', function()