Comparing version 3.0.6 to 3.0.7
@@ -105,2 +105,6 @@ 'use strict'; | ||
}, | ||
terminate: () => { | ||
process.emit('TERMINATE'); | ||
}, | ||
}; | ||
@@ -208,2 +212,3 @@ | ||
process.on('SIGTERM', stop); | ||
process.on('TERMINATE', stop); | ||
@@ -210,0 +215,0 @@ if (process.stdin.isTTY) { |
@@ -137,17 +137,16 @@ 'use strict'; | ||
this.semaphore = new Semaphore(concurrency, size, timeout); | ||
if (mode === 'test' && threadId === 1) this.test(); | ||
this.initialization = false; | ||
sandbox.application.emit('started'); | ||
if (mode === 'test' && threadId === 1) this.test(); | ||
} | ||
async test() { | ||
setTimeout(async () => { | ||
await this.parallel( | ||
this.tests.map((test) => | ||
node.test(test.name, (t) => this.execute(test.run, t)), | ||
), | ||
ERR_TEST, | ||
); | ||
process.kill(process.pid, 'SIGINT'); | ||
}, 1000); | ||
test() { | ||
this.parallel( | ||
this.tests.map((test) => | ||
node.test(test.name, (t) => this.execute(test.run, t)), | ||
), | ||
ERR_TEST, | ||
).then(() => { | ||
wt.parentPort.postMessage({ name: 'terminate' }); | ||
}); | ||
} | ||
@@ -154,0 +153,0 @@ |
{ | ||
"name": "impress", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "Enterprise application server for Node.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66912
1761