mirror of
https://github.com/neovim/neovim.git
synced 2026-05-24 05:40:08 +00:00
vim-patch:9.2.0430: tests: Test_shortmess_F3() is flaky on MS-Windows
Problem: tests: Test_shortmess_F3() is flaky on MS-Windows
Solution: Increase the sleep to 3s (Yasuhiro Matsumoto)
On MS-Windows time_differs() treats mtime as unchanged unless st_mtime
differs by more than 1 second, so a 2-second sleep can fall short when
the two writes straddle a second boundary. Bump the non-nanotime sleep
to 3 seconds.
closes: vim/vim#20117
2219c89013
Co-authored-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
This commit is contained in:
@@ -1400,7 +1400,7 @@ func Test_shortmess_F3()
|
||||
if has('nanotime')
|
||||
sleep 10m
|
||||
else
|
||||
sleep 2
|
||||
sleep 3
|
||||
endif
|
||||
call writefile(['bar'], 'X_dummy')
|
||||
bprev
|
||||
@@ -1410,7 +1410,7 @@ func Test_shortmess_F3()
|
||||
if has('nanotime')
|
||||
sleep 10m
|
||||
else
|
||||
sleep 2
|
||||
sleep 3
|
||||
endif
|
||||
call writefile(['baz'], 'X_dummy')
|
||||
checktime
|
||||
|
||||
Reference in New Issue
Block a user