Skip to content

Commit

Permalink
fix: async ci error
Browse files Browse the repository at this point in the history
Signed-off-by: Curtish <[email protected]>
  • Loading branch information
curtis-h committed Nov 1, 2024
1 parent 3d0d4dd commit f63c4d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions integration-tests/node/cjs/test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,16 @@ describe('CommonJS Integration', () => {
});

// hack to avoid mediation startup
agent.connectionManager.cancellable = { cancel: () => { } };
agent.mediationHandler.mediator = {
hostDID: did,
mediatorDID: did,
routingDID: did,
};

const started = await agent.start();
assert(started === "running")
await agent.start();
assert(agent.state === "running");
await agent.stop();
assert(agent.state === "stopped");
});
});
7 changes: 5 additions & 2 deletions integration-tests/node/esm/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,16 @@ describe('CommonJS Integration', () => {
});

// hack to avoid mediation startup
agent.connectionManager.cancellable = { cancel: () => { } };
agent.mediationHandler.mediator = {
hostDID: did,
mediatorDID: did,
routingDID: did,
};

const started = await agent.start();
assert(started === "running")
await agent.start();
assert(agent.state === "running");
await agent.stop();
assert(agent.state === "stopped");
});
});

0 comments on commit f63c4d3

Please sign in to comment.