# HG changeset patch # User Christian Brabandt # Date 1511273705 -3600 # Node ID 30b0d784c870a4bf60e6272948d7d40488cfeb86 # Parent 14f11273dcb3d36fd63d17084491099b7c249c59 patch 8.0.1329: when a flaky test fails it also often fails the second time commit https://github.com/vim/vim/commit/550586015232ecc4f68b3479fa8ba2cf81c76e7b Author: Bram Moolenaar Date: Tue Nov 21 15:14:51 2017 +0100 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. diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim --- a/src/testdir/runtest.vim +++ b/src/testdir/runtest.vim @@ -286,6 +286,10 @@ for s:test in sort(s:tests) call add(s:messages, 'Flaky test failed, running it again') 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 = [] call RunTheTest(s:test) if len(v:errors) > 0 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -772,6 +772,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1329, +/**/ 1328, /**/ 1327,