testaro 36.3.0 → 36.4.0
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/package.json +1 -1
- package/tests/testaro.js +2 -2
package/package.json
CHANGED
package/tests/testaro.js
CHANGED
|
@@ -208,7 +208,7 @@ exports.reporter = async (page, options) => {
|
|
|
208
208
|
result[rule].what = what;
|
|
209
209
|
try {
|
|
210
210
|
const startTime = Date.now();
|
|
211
|
-
// Apply a
|
|
211
|
+
// Apply a 15-second time limit to the test. If it expires:
|
|
212
212
|
let timeout;
|
|
213
213
|
const timer = new Promise(resolve => {
|
|
214
214
|
timeout = setTimeout(() => {
|
|
@@ -220,7 +220,7 @@ exports.reporter = async (page, options) => {
|
|
|
220
220
|
result[rule].standardInstances = [];
|
|
221
221
|
console.log(`ERROR: Test of testaro rule ${rule} timed out`);
|
|
222
222
|
resolve({timedOut: true});
|
|
223
|
-
},
|
|
223
|
+
}, 15000);
|
|
224
224
|
});
|
|
225
225
|
const ruleReport = isJS
|
|
226
226
|
? require(`../testaro/${rule}`).reporter(... ruleArgs)
|