aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-02-17 10:32:35 +0800
committerGitHub <noreply@github.com>2025-02-17 10:32:35 +0800
commit5e7801329f5b1d7dc6523beb9b60a2bda19e7da1 (patch)
tree6fcf0214442217b0698773912dbb9bf1f035edab
parentbfd59c955f86579c60a07c7370497003fb5d7c95 (diff)
downloadrneovim-5e7801329f5b1d7dc6523beb9b60a2bda19e7da1.tar.gz
rneovim-5e7801329f5b1d7dc6523beb9b60a2bda19e7da1.tar.bz2
rneovim-5e7801329f5b1d7dc6523beb9b60a2bda19e7da1.zip
test(lua/hl_spec): reduce flakiness (#32489)
-rw-r--r--test/functional/lua/hl_spec.lua12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/functional/lua/hl_spec.lua b/test/functional/lua/hl_spec.lua
index 512f6be48f..d88d30b8f6 100644
--- a/test/functional/lua/hl_spec.lua
+++ b/test/functional/lua/hl_spec.lua
@@ -27,6 +27,14 @@ describe('vim.hl.range', function()
'口口=口口',
'zxcvbnm',
})
+ screen:expect([[
+ ^asdfghjkl{1:$} |
+ «口=口»{1:$} |
+ qwertyuiop{1:$} |
+ 口口=口口{1:$} |
+ zxcvbnm{1:$} |
+ |
+ ]])
end)
it('works with charwise selection', function()
@@ -106,7 +114,7 @@ describe('vim.hl.range', function()
end)
it('removes highlight after given `timeout`', function()
- local timeout = 100
+ local timeout = 300
exec_lua(function()
local ns = vim.api.nvim_create_namespace('')
vim.hl.range(0, ns, 'Search', { 0, 0 }, { 4, 0 }, { timeout = timeout })
@@ -120,7 +128,7 @@ describe('vim.hl.range', function()
zxcvbnm{1:$} |
|
]],
- timeout = timeout,
+ timeout = timeout / 3,
})
screen:expect([[
^asdfghjkl{1:$} |