test(undotree): flaky tests #40218

Problem:
After 400f247397 the undotree test became flaky.

It seems to be caused by some kind of race condition where an entry in the undotree is not added when a change in the buffer happens (adding a bunch of sleep around buffer-change operations seems to fix the issue).

Solution:
Disable autoread plugin in undotree test.
This commit is contained in:
altermo
2026-06-13 18:49:18 +02:00
committed by GitHub
parent d52ebe317d
commit 67378bfb5a

View File

@@ -40,7 +40,14 @@ end
describe(':Undotree', function()
before_each(function()
clear({ args = { '--clean' } })
clear({
args = {
'--clean',
-- autoread plugin causes flaky tests
'--cmd',
'let g:loaded_autoread=1',
},
})
exec 'packadd nvim.undotree'
end)