diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-03-13 08:42:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-13 00:42:02 +0000 |
commit | dbd76c2c414e24ed3e961568567a3a60f97cf2fb (patch) | |
tree | 0c7b1d63c0334af44a0205ec460105e8f4d43269 /test/functional/ui/cursor_spec.lua | |
parent | 785e620700df800810dc45a965dcc99573a3b7a3 (diff) | |
download | rneovim-dbd76c2c414e24ed3e961568567a3a60f97cf2fb.tar.gz rneovim-dbd76c2c414e24ed3e961568567a3a60f97cf2fb.tar.bz2 rneovim-dbd76c2c414e24ed3e961568567a3a60f97cf2fb.zip |
test: reduce flakiness in blocking wait tests (#32868)
Diffstat (limited to 'test/functional/ui/cursor_spec.lua')
-rw-r--r-- | test/functional/ui/cursor_spec.lua | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/test/functional/ui/cursor_spec.lua b/test/functional/ui/cursor_spec.lua index 7bef26f842..ff304db54c 100644 --- a/test/functional/ui/cursor_spec.lua +++ b/test/functional/ui/cursor_spec.lua @@ -379,7 +379,13 @@ describe('ui/cursor', function() end) it(':sleep does not hide cursor when sleeping', function() - n.feed(':sleep 300m | echo 42\n') + n.feed(':sleep 300m | echo 42') + screen:expect([[ + | + {1:~ }|*3 + :sleep 300m | echo 42^ | + ]]) + n.feed('\n') screen:expect({ grid = [[ ^ | @@ -396,7 +402,13 @@ describe('ui/cursor', function() end) it(':sleep! hides cursor when sleeping', function() - n.feed(':sleep! 300m | echo 42\n') + n.feed(':sleep! 300m | echo 42') + screen:expect([[ + | + {1:~ }|*3 + :sleep! 300m | echo 42^ | + ]]) + n.feed('\n') screen:expect({ grid = [[ | |