Skip to content

Commit 9a74401

Browse files
committed
test(server): assert the conflicted dispatch leaves the target thread untouched
1 parent 56b4962 commit 9a74401

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎apps/server/src/orchestration/Layers/OrchestrationEngine.test.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,6 +1371,12 @@ describe("OrchestrationEngine", () => {
13711371
),
13721372
).rejects.toThrow("already used for thread 'thread-conflict-a'");
13731373

1374+
const readModel = await system.readModel();
1375+
const targetThread = readModel.threads.find(
1376+
(candidate) => candidate.id === "thread-conflict-b",
1377+
);
1378+
expect(targetThread?.messages.filter((message) => message.role === "user")).toHaveLength(0);
1379+
13741380
await system.dispose();
13751381
});
13761382
});

0 commit comments

Comments
 (0)