diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-27 11:22:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 11:22:20 +0800 |
commit | 00e9c6955125fdbded208d4b5af59b94e96d7ea8 (patch) | |
tree | 3fbbcf58aed97307066f97b9b9c2d5d9fe77d480 /test/functional/terminal/tui_spec.lua | |
parent | bf7c7adb40fe2634c632c2ea7a003ada8cca45c3 (diff) | |
download | rneovim-00e9c6955125fdbded208d4b5af59b94e96d7ea8.tar.gz rneovim-00e9c6955125fdbded208d4b5af59b94e96d7ea8.tar.bz2 rneovim-00e9c6955125fdbded208d4b5af59b94e96d7ea8.zip |
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 (limited to 'test/functional/terminal/tui_spec.lua')
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 03d0999f24..0300672a08 100644 --- 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() |