testaro 5.5.1 → 5.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/create.js +3 -2
- package/package.json +1 -1
package/create.js
CHANGED
|
@@ -89,7 +89,8 @@ exports.runJob = async (scriptID, batchID) => {
|
|
|
89
89
|
// If there is no need to keep checking:
|
|
90
90
|
const reportNames = await fs.readdir(reportDir);
|
|
91
91
|
const timedOut = Date.now() - startTime > 1000 * timeLimit;
|
|
92
|
-
|
|
92
|
+
const reportWritten = reportNames.includes(`${id}.json`);
|
|
93
|
+
if (timedOut || reportWritten || ! childAlive) {
|
|
93
94
|
// Stop checking.
|
|
94
95
|
clearInterval(reCheck);
|
|
95
96
|
// If the cause is a timeout:
|
|
@@ -98,7 +99,7 @@ exports.runJob = async (scriptID, batchID) => {
|
|
|
98
99
|
timeoutHosts.push(id);
|
|
99
100
|
}
|
|
100
101
|
// Otherwise, if the cause is a child crash:
|
|
101
|
-
else if (! childAlive) {
|
|
102
|
+
else if (! (childAlive || reportWritten)) {
|
|
102
103
|
// Add the host to the array of crashed hosts.
|
|
103
104
|
crashHosts.push(id);
|
|
104
105
|
}
|