mirror of
https://github.com/neovim/neovim.git
synced 2026-06-15 16:23:48 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user