mirror of
https://github.com/neovim/neovim.git
synced 2026-03-20 15:39:43 +00:00
vim-patch:8.2.3534: autoread test is a bit flaky
Problem: Autoread test is a bit flaky.
Solution: Wait a brief moment before overwriting the file.
944eeb44fb
This commit is contained in:
@@ -105,7 +105,8 @@ func Test_autoread_fast()
|
||||
setlocal autoread
|
||||
call setline(1, 'foo')
|
||||
w!
|
||||
silent !echo bar > Xautoread
|
||||
sleep 10m
|
||||
call writefile(['bar'], 'Xautoread')
|
||||
sleep 10m
|
||||
checktime
|
||||
call assert_equal('bar', trim(getline(1)))
|
||||
|
||||
Reference in New Issue
Block a user