From a5d8d5349d4761873df3c5b36143dd04417d6f69 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 7 Aug 2020 12:09:32 +0530 Subject: [PATCH] actually only shut down once --- packages/taler-integrationtests/src/harness.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/taler-integrationtests/src/harness.ts b/packages/taler-integrationtests/src/harness.ts index 9e1faf5cd..20b8a9941 100644 --- a/packages/taler-integrationtests/src/harness.ts +++ b/packages/taler-integrationtests/src/harness.ts @@ -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();