mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 23:06:16 -04:00
Increased test timeout to 120s from 60
This commit is contained in:
parent
4308c717c3
commit
9c0c2867dd
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ function handleTestResult(testStatus, testResult) {
|
||||||
testStatus.counts.total += 1;
|
testStatus.counts.total += 1;
|
||||||
|
|
||||||
if (testResult.duration > 2000) {
|
if (testResult.duration > 2000) {
|
||||||
console.log(`'${testResult.test.name}' took ${(testResult.duration / 1000).toFixed(2)}s to complete`);
|
console.log(`'${testResult.test.name}' took ${(testResult.duration / 1000).toFixed(1)}s to complete`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ export function logTestReport(testStatus, results) {
|
||||||
* Fail if the process takes longer than 60 seconds.
|
* Fail if the process takes longer than 60 seconds.
|
||||||
*/
|
*/
|
||||||
export function setLongTestFailure() {
|
export function setLongTestFailure() {
|
||||||
const timeLimit = 60;
|
const timeLimit = 120;
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
console.log(`Tests took longer than ${timeLimit} seconds to run, returning.`);
|
console.log(`Tests took longer than ${timeLimit} seconds to run, returning.`);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue