release traders at end of offline dispute test

This commit is contained in:
woodser 2024-01-26 09:11:12 -05:00
parent 24f6ce227a
commit d6438f7895

View File

@ -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;
});