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
commitb2606673cc367c018527203fbc7c3e85cc9a4e8e (patch)
treed634b746a96f953e28c98012d0c5a1ff4d8bd1eb
parent0f1c7059361f5db894fa0715ee6ee15d444a9c2b (diff)
downloadrneovim-b2606673cc367c018527203fbc7c3e85cc9a4e8e.tar.gz
rneovim-b2606673cc367c018527203fbc7c3e85cc9a4e8e.tar.bz2
rneovim-b2606673cc367c018527203fbc7c3e85cc9a4e8e.zip
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. https://github.com/vim/vim/commit/944eeb44fb6e9d6d28474a1348d27c07873892f9
-rw-r--r--src/nvim/testdir/test_stat.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_stat.vim b/src/nvim/testdir/test_stat.vim
index 893a740ee2..b44f3e9b94 100644
--- a/src/nvim/testdir/test_stat.vim
+++ b/src/nvim/testdir/test_stat.vim
@@ -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)))