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