testaro 13.0.1 → 13.0.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/package.json +1 -1
- package/tests/continuum.js +4 -4
package/package.json
CHANGED
package/tests/continuum.js
CHANGED
|
@@ -22,7 +22,7 @@ exports.reporter = async (page, rules) => {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
if (! result.prevented) {
|
|
25
|
-
// Run the Continuum ruleset and get the result, failing if none within
|
|
25
|
+
// Run the Continuum ruleset and get the result, failing if none within 30 seconds.
|
|
26
26
|
result = await page.evaluate(async rules => {
|
|
27
27
|
continuum.setUp(null, null, window);
|
|
28
28
|
// If a set of rules to be employed was specified:
|
|
@@ -36,11 +36,11 @@ exports.reporter = async (page, rules) => {
|
|
|
36
36
|
// Run all the tests.
|
|
37
37
|
bigResultPromise = continuum.runAllTests();
|
|
38
38
|
}
|
|
39
|
-
// Allow
|
|
39
|
+
// Allow 30 seconds for the result compilation.
|
|
40
40
|
const deadlinePromise = new Promise(resolve => {
|
|
41
41
|
setTimeout(() => {
|
|
42
42
|
resolve('timeout');
|
|
43
|
-
},
|
|
43
|
+
}, 30000);
|
|
44
44
|
});
|
|
45
45
|
const bigResult = await Promise.race([bigResultPromise, deadlinePromise]);
|
|
46
46
|
if (Array.isArray(bigResult)) {
|
|
@@ -56,7 +56,7 @@ exports.reporter = async (page, rules) => {
|
|
|
56
56
|
else if (bigResult === 'timeout') {
|
|
57
57
|
return {
|
|
58
58
|
prevented: true,
|
|
59
|
-
error: 'ERROR: Running
|
|
59
|
+
error: 'ERROR: Running tests timed out'
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
else {
|