Skip to content

Commit d6438f7

Browse files
committed
release traders at end of offline dispute test
1 parent 24f6ce2 commit d6438f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/HavenoClient.test.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1826,7 +1826,8 @@ test("Can go offline while resolving a dispute (CI)", async () => {
18261826
}
18271827

18281828
// stop and delete traders
1829-
if (ctx.maker!.havenod) await releaseHavenoProcess(ctx.maker!.havenod!, true);
1829+
if (ctx.maker && ctx.maker.havenod) await releaseHavenoProcess(ctx.maker!.havenod!, true);
1830+
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
18301831
if (ctx.sellerAppName) deleteHavenoInstanceByAppName(ctx.sellerAppName!); // seller is offline
18311832
if (err) throw err;
18321833
});

0 commit comments

Comments
 (0)