linger only in normal shutdown
This commit is contained in:
parent
8b6f4c1ff0
commit
75b88c209e
@ -265,11 +265,6 @@ export class GlobalTestState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private shutdownSync(): void {
|
private shutdownSync(): void {
|
||||||
if (shouldLingerAlways()) {
|
|
||||||
console.log("*** test finished, but requested to linger");
|
|
||||||
console.log("*** test state can be found under", this.testDir);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
for (const s of this.servers) {
|
for (const s of this.servers) {
|
||||||
s.close();
|
s.close();
|
||||||
s.removeAllListeners();
|
s.removeAllListeners();
|
||||||
@ -319,6 +314,11 @@ export class GlobalTestState {
|
|||||||
}
|
}
|
||||||
this.inShutdown = true;
|
this.inShutdown = true;
|
||||||
console.log("shutting down");
|
console.log("shutting down");
|
||||||
|
if (shouldLingerAlways()) {
|
||||||
|
console.log("*** test finished, but requested to linger");
|
||||||
|
console.log("*** test state can be found under", this.testDir);
|
||||||
|
return;
|
||||||
|
}
|
||||||
for (const s of this.servers) {
|
for (const s of this.servers) {
|
||||||
s.close();
|
s.close();
|
||||||
s.removeAllListeners();
|
s.removeAllListeners();
|
||||||
|
Loading…
Reference in New Issue
Block a user