mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 23:36:16 -04:00
Added timeout back to test runner.
This commit is contained in:
parent
720b7a3e3f
commit
dd5bd5d5e7
1 changed files with 9 additions and 0 deletions
|
@ -66,6 +66,15 @@ function handleTestResult(testResult) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fail if the process takes longer than 10 seconds.
|
||||||
|
*/
|
||||||
|
setTimeout(function() {
|
||||||
|
console.log("Tests took longer than 10 seconds to run, returning.");
|
||||||
|
process.exit(1);
|
||||||
|
}, 1 * 1000);
|
||||||
|
|
||||||
|
|
||||||
TestRegister.runTests()
|
TestRegister.runTests()
|
||||||
.then(function(results) {
|
.then(function(results) {
|
||||||
results.forEach(handleTestResult);
|
results.forEach(handleTestResult);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue