patch 8.2.3514: autoread test with nano second time sometimes fails
Problem: Autoread test with nano second time sometimes fails.
Solution: Mark the test as being flaky.
diff --git a/src/testdir/test_stat.vim b/src/testdir/test_stat.vim
index 38ced6d..fa61c5c 100644
--- a/src/testdir/test_stat.vim
+++ b/src/testdir/test_stat.vim
@@ -97,16 +97,18 @@
func Test_autoread_fast()
CheckFeature nanotime
- new Xautoread
- set autoread
- call setline(1, 'foo')
+ " this is timing sensitive
+ let g:test_is_flaky = 1
+ new Xautoread
+ setlocal autoread
+ call setline(1, 'foo')
w!
silent !echo bar > Xautoread
sleep 10m
checktime
-
call assert_equal('bar', trim(getline(1)))
+
call delete('Xautoread')
endfunc