Skip to content

Commit

Permalink
release traders at end of offline dispute test
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Jan 27, 2024
1 parent 24f6ce2 commit d6438f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/HavenoClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit d6438f7

Please sign in to comment.