This commit is contained in:
parent
c43b6925bd
commit
2196f0de9b
2 changed files with 6 additions and 1 deletions
|
|
@ -1216,7 +1216,6 @@ export class DiscordCodexBridge {
|
|||
}
|
||||
const wakes = this.#gatewayPendingWakes();
|
||||
if (wakes.some((wake) =>
|
||||
!wake.startedAt &&
|
||||
wake.kind === input.kind &&
|
||||
wake.groupId === input.groupId &&
|
||||
sameStringSet(wake.delegationIds, delegationIds)
|
||||
|
|
|
|||
|
|
@ -289,6 +289,9 @@ describe("DiscordCodexBridge", () => {
|
|||
startedAt: "2026-05-14T12:00:00.000Z",
|
||||
}),
|
||||
);
|
||||
await sleep(30);
|
||||
expect(client.startTurnCalls).toHaveLength(3);
|
||||
expect(bridge.stateForTest().gateway?.pendingWakes).toHaveLength(1);
|
||||
await bridge.stop();
|
||||
});
|
||||
|
||||
|
|
@ -394,6 +397,9 @@ describe("DiscordCodexBridge", () => {
|
|||
expect(bridge.stateForTest().gateway?.pendingWakes?.[0]).not.toHaveProperty(
|
||||
"startedAt",
|
||||
);
|
||||
await sleep(30);
|
||||
expect(client.startTurnCalls).toHaveLength(2);
|
||||
expect(bridge.stateForTest().gateway?.pendingWakes).toHaveLength(1);
|
||||
await bridge.stop();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue