aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-13 21:33:28 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-02-13 21:33:28 +0800
commit21283aa445a0b2e13f1c6ac56512165c5bc17922 (patch)
tree332f41d31431ceab9756f6831d056244967eacef
parentbad22bd65668bb0677be35759a793e60543df980 (diff)
downloadrneovim-21283aa445a0b2e13f1c6ac56512165c5bc17922.tar.gz
rneovim-21283aa445a0b2e13f1c6ac56512165c5bc17922.tar.bz2
rneovim-21283aa445a0b2e13f1c6ac56512165c5bc17922.zip
vim-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. https://github.com/vim/vim/commit/eaa006dae3d5730e3b6dead27905444998b2cf8e
-rw-r--r--src/nvim/testdir/test_stat.vim8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_stat.vim b/src/nvim/testdir/test_stat.vim
index 841b5d2db7..893a740ee2 100644
--- a/src/nvim/testdir/test_stat.vim
+++ b/src/nvim/testdir/test_stat.vim
@@ -98,16 +98,18 @@ endfunc
func Test_autoread_fast()
CheckFeature nanotime
+ " this is timing sensitive
+ let g:test_is_flaky = 1
+
new Xautoread
- set autoread
+ 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