always terminate properly

This commit is contained in:
Florian Dold 2020-08-06 17:32:52 +05:30
parent 59fe51806d
commit ac438906e9
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -876,8 +876,8 @@ export function runTest(testMain: (gc: GlobalTestState) => Promise<void>) {
try {
await testMain(gc);
} finally {
await gc.terminate();
if (process.env["TALER_TEST_KEEP"] !== "1") {
await gc.terminate();
console.log("test logs and config can be found under", gc.testDir);
}
}