aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-19 17:39:30 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-07-19 19:41:07 +0800
commit366e90cdc84a4b698028eb73d590297faec799f2 (patch)
tree53cd112d7107e18c9e1d98581096260e5c45a744
parent101fd04ee2036b125a93f3e71dbaa4ae6917ce8b (diff)
downloadrneovim-366e90cdc84a4b698028eb73d590297faec799f2.tar.gz
rneovim-366e90cdc84a4b698028eb73d590297faec799f2.tar.bz2
rneovim-366e90cdc84a4b698028eb73d590297faec799f2.zip
test: avoid timing-sensitive undo message
-rw-r--r--test/functional/legacy/excmd_spec.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/legacy/excmd_spec.lua b/test/functional/legacy/excmd_spec.lua
index 549f412e24..802e06c799 100644
--- a/test/functional/legacy/excmd_spec.lua
+++ b/test/functional/legacy/excmd_spec.lua
@@ -407,12 +407,12 @@ describe(':confirm command dialog', function()
-- Try to write with read-only file permissions.
funcs.setfperm('Xconfirm_write_ro', 'r--r--r--')
- feed(':set noro | undo | confirm w\n')
+ feed(':set noro | silent undo | confirm w\n')
screen:expect([[
foobar |
{0:~ }|
{1: }|
- 1 change; before #1 0 seconds ago |
+ :set noro | silent undo | confirm w |
{3:File permissions of "Xconfirm_write_ro" are read-only.} |
{3:It may still be possible to write it.} |
{3:Do you wish to try?} |
@@ -423,7 +423,7 @@ describe(':confirm command dialog', function()
screen:expect([[
foobar |
{1: }|
- 1 change; before #1 0 seconds ago |
+ :set noro | silent undo | confirm w |
{3:File permissions of "Xconfirm_write_ro" are read-only.} |
{3:It may still be possible to write it.} |
{3:Do you wish to try?} |
@@ -434,7 +434,7 @@ describe(':confirm command dialog', function()
screen:expect([[
foobar |
{1: }|
- 1 change; before #1 0 seconds ago |
+ :set noro | silent undo | confirm w |
{3:File permissions of "Xconfirm_write_ro" are read-only.} |
{3:It may still be possible to write it.} |
{3:Do you wish to try?} |