From 54a1e1d4f8f64c82e891f9ac2db2c8a784876998 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 3 Apr 2021 06:30:15 -0700 Subject: [PATCH] test: fix flaky test-hash-seed This test can take a long time to run. Some of our CI hosts are configured to consider the task stalled if there is no output for 3 minutes. TO prevent that from canceling this test and the entire test suite, output something every 60 seconds or so. Refs: https://github.com/nodejs/node/pull/34289 --- test/pummel/test-hash-seed.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/pummel/test-hash-seed.js b/test/pummel/test-hash-seed.js index 30edca32f6f852..b9d71f11bf583a 100644 --- a/test/pummel/test-hash-seed.js +++ b/test/pummel/test-hash-seed.js @@ -24,3 +24,9 @@ const subprocesses = [...new Array(kRepetitions)].map(generateSeed); Promise.all(subprocesses) .then(requiredCallback); + +// This test can take a long time to run. Some of our CI hosts are configured +// to consider the task stalled if there is no output for 3 minutes. TO +// prevent that from canceling this test and the entire test suite, output +// something every 60 seconds or so. +setInterval(() => { console.log('.'); }, 60000).unref();