SHA256
6
0
forked from pool/nodejs19
Files
nodejs19/flaky_test_rerun.patch
Adam Majer 0747869e51 - Initial version 19.0.0:
* HTTP(S)/1.1 KeepAlive by default
  * DTrace/SystemTap/ETW Support were removed
  * The V8 engine is updated to version 10.7, which is part of Chromium 107.
    This version include a new feature to the JavaScript API:
    Intl.NumberFormat
  * llhttp has been updated to version 8.1.0.
For details see
https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V19.md#19.0.0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs19?expand=0&rev=1
2022-10-21 09:48:41 +00:00

22 lines
670 B
Diff

Index: node-v16.13.0/tools/test.py
===================================================================
--- node-v16.13.0.orig/tools/test.py
+++ node-v16.13.0/tools/test.py
@@ -586,6 +586,16 @@ class TestCase(object):
self.context.store_unexpected_output)
def Run(self):
+ reruns = 0
+ while (reruns < 5):
+ reruns += 1
+ result = self.OriginalRun()
+ if (not result.HasFailed()):
+ break
+ print("FLAKY TEST rerun: ", self.GetCommand())
+ return result
+
+ def OriginalRun(self):
try:
result = self.RunCommand(self.GetCommand(), {
"TEST_SERIAL_ID": "%d" % self.serial_id,