From d6438f78953f9331b9a3eff2ff20e0d31bf2381a Mon Sep 17 00:00:00 2001 From: woodser Date: Fri, 26 Jan 2024 09:11:12 -0500 Subject: [PATCH] release traders at end of offline dispute test --- src/HavenoClient.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/HavenoClient.test.ts b/src/HavenoClient.test.ts index 1f2ae9e7..581012d3 100644 --- a/src/HavenoClient.test.ts +++ b/src/HavenoClient.test.ts @@ -1826,7 +1826,8 @@ test("Can go offline while resolving a dispute (CI)", async () => { } // stop and delete traders - if (ctx.maker!.havenod) await releaseHavenoProcess(ctx.maker!.havenod!, true); + if (ctx.maker && ctx.maker.havenod) await releaseHavenoProcess(ctx.maker!.havenod!, true); + if (ctx.taker && ctx.taker.havenod) await releaseHavenoProcess(ctx.taker!.havenod!, true); // closing this client after first induces HttpClientImpl.shutdown() to hang, so this tests timeout handling if (ctx.sellerAppName) deleteHavenoInstanceByAppName(ctx.sellerAppName!); // seller is offline if (err) throw err; });