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:
zeertzjq 2022-02-13 21:33:28 +08:00
parent 0f1c705936
commit b2606673cc

View File

@ -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)))