diff --git a/test/functional/plugin/undotree_spec.lua b/test/functional/plugin/undotree_spec.lua index b3d1336d16..c21932e58c 100644 --- a/test/functional/plugin/undotree_spec.lua +++ b/test/functional/plugin/undotree_spec.lua @@ -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)