mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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.
eaa006dae3
This commit is contained in:
parent
bad22bd656
commit
21283aa445
@ -98,16 +98,18 @@ endfunc
|
|||||||
func Test_autoread_fast()
|
func Test_autoread_fast()
|
||||||
CheckFeature nanotime
|
CheckFeature nanotime
|
||||||
|
|
||||||
new Xautoread
|
" this is timing sensitive
|
||||||
set autoread
|
let g:test_is_flaky = 1
|
||||||
call setline(1, 'foo')
|
|
||||||
|
|
||||||
|
new Xautoread
|
||||||
|
setlocal autoread
|
||||||
|
call setline(1, 'foo')
|
||||||
w!
|
w!
|
||||||
silent !echo bar > Xautoread
|
silent !echo bar > Xautoread
|
||||||
sleep 10m
|
sleep 10m
|
||||||
checktime
|
checktime
|
||||||
|
|
||||||
call assert_equal('bar', trim(getline(1)))
|
call assert_equal('bar', trim(getline(1)))
|
||||||
|
|
||||||
call delete('Xautoread')
|
call delete('Xautoread')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user