aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-08-07 12:18:17 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-08-07 12:18:17 +0530
commit75b88c209e2b6e581407bcf234e0a5ed832001f8 (patch)
tree0b56a3f8d52bb57e9613ef941cb319920c25907e
parent8b6f4c1ff0f93a72273e68a7fbd9e31b478142cc (diff)
linger only in normal shutdown
-rw-r--r--packages/taler-integrationtests/src/harness.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/taler-integrationtests/src/harness.ts b/packages/taler-integrationtests/src/harness.ts
index 02bb81437..ea66ea35c 100644
--- a/packages/taler-integrationtests/src/harness.ts
+++ b/packages/taler-integrationtests/src/harness.ts
@@ -265,11 +265,6 @@ export class GlobalTestState {
}
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) {
s.close();
s.removeAllListeners();
@@ -319,6 +314,11 @@ export class GlobalTestState {
}
this.inShutdown = true;
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) {
s.close();
s.removeAllListeners();