actually only shut down once
This commit is contained in:
parent
08ec98af77
commit
a5d8d5349d
@ -220,7 +220,7 @@ export class GlobalTestState {
|
|||||||
testDir: string;
|
testDir: string;
|
||||||
procs: ProcessWrapper[];
|
procs: ProcessWrapper[];
|
||||||
servers: http.Server[];
|
servers: http.Server[];
|
||||||
inShutdown: false;
|
inShutdown: boolean = false;
|
||||||
constructor(params: GlobalTestParams) {
|
constructor(params: GlobalTestParams) {
|
||||||
this.testDir = params.testDir;
|
this.testDir = params.testDir;
|
||||||
this.procs = [];
|
this.procs = [];
|
||||||
@ -312,6 +312,7 @@ export class GlobalTestState {
|
|||||||
if (this.inShutdown) {
|
if (this.inShutdown) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.inShutdown = true;
|
||||||
console.log("shutting down");
|
console.log("shutting down");
|
||||||
for (const s of this.servers) {
|
for (const s of this.servers) {
|
||||||
s.close();
|
s.close();
|
||||||
|
Loading…
Reference in New Issue
Block a user