]> granicus.if.org Git - vim/commitdiff
patch 8.0.1329: when a flaky test fails it also often fails the second time v8.0.1329
authorBram Moolenaar <Bram@vim.org>
Tue, 21 Nov 2017 14:14:51 +0000 (15:14 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 21 Nov 2017 14:14:51 +0000 (15:14 +0100)
Problem:    When a flaky test fails it also often fails the second time.
Solution:   Sleep a couple of seconds before the second try.

src/testdir/runtest.vim
src/version.c

index 8eef1669fd20d6771356b35efcbc6ef32d7d513b..c953d6d7ce64319ac806d876aad80165533aa139 100644 (file)
@@ -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
index d311de91bc9f8e7fb10572b808c0f4b6828d2b92..93fb5cbfccada01dcdb647877af6749531e7d43a 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1329,
 /**/
     1328,
 /**/