mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.0.1329: when a flaky test fails it also often fails the second time
Problem: When a flaky test fails it also often fails the second time.
Solution: Sleep a couple of seconds before the second try.
5505860152
This commit is contained in:
parent
1be0107168
commit
44f275d518
@ -250,6 +250,10 @@ for s:test in sort(s:tests)
|
|||||||
call add(s:messages, 'Flaky test failed, running it again')
|
call add(s:messages, 'Flaky test failed, running it again')
|
||||||
let first_run = v:errors
|
let first_run = v:errors
|
||||||
|
|
||||||
|
" Flakiness is often caused by the system being very busy. Sleep a couple
|
||||||
|
" of seconds to have a higher chance of succeeding the second time.
|
||||||
|
sleep 2
|
||||||
|
|
||||||
let v:errors = []
|
let v:errors = []
|
||||||
call RunTheTest(s:test)
|
call RunTheTest(s:test)
|
||||||
if len(v:errors) > 0
|
if len(v:errors) > 0
|
||||||
|
Loading…
Reference in New Issue
Block a user