Skip to content

Commit 1f71c1d

Browse files
test(server): update bootstrap command sequences for the persisted send
Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent 48713fc commit 1f71c1d

1 file changed

Lines changed: 23 additions & 6 deletions

File tree

‎apps/server/src/server.test.ts‎

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11116,13 +11116,19 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
1111611116
),
1111711117
);
1111811118

11119-
assert.equal(response.sequence, 3);
11119+
assert.equal(response.sequence, 4);
1112011120
assert.equal(createWorktree.mock.calls.length, 0);
1112111121
assert.deepEqual(
1112211122
dispatchedCommands.map((command) => command.type),
11123-
["thread.create", "thread.message.user.append", "thread.turn.start"],
11123+
[
11124+
"thread.create",
11125+
"thread.message.user.append",
11126+
"thread.activity.append",
11127+
"thread.turn.start",
11128+
"thread.activity.append",
11129+
],
1112411130
);
11125-
const finalCommand = dispatchedCommands[2];
11131+
const finalCommand = dispatchedCommands[3];
1112611132
assertTrue(finalCommand?.type === "thread.turn.start");
1112711133
if (finalCommand?.type === "thread.turn.start") {
1112811134
assert.equal(finalCommand.bootstrap, undefined);
@@ -11203,11 +11209,17 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
1120311209
),
1120411210
);
1120511211

11206-
assert.equal(response.sequence, 3);
11212+
assert.equal(response.sequence, 4);
1120711213
assert.equal(createWorktree.mock.calls.length, 0);
1120811214
assert.deepEqual(
1120911215
dispatchedCommands.map((command) => command.type),
11210-
["thread.create", "thread.message.user.append", "thread.turn.start"],
11216+
[
11217+
"thread.create",
11218+
"thread.message.user.append",
11219+
"thread.activity.append",
11220+
"thread.turn.start",
11221+
"thread.activity.append",
11222+
],
1121111223
);
1121211224
}).pipe(Effect.provide(NodeHttpServer.layerTest)),
1121311225
);
@@ -11831,7 +11843,12 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
1183111843
}),
1183211844
),
1183311845
);
11834-
assert.deepEqual(trace, ["thread.create", "drain:1", "thread.turn.start"]);
11846+
assert.deepEqual(trace, [
11847+
"thread.create",
11848+
"drain:1",
11849+
"thread.message.user.append",
11850+
"thread.turn.start",
11851+
]);
1183511852
}).pipe(Effect.provide(NodeHttpServer.layerTest)),
1183611853
);
1183711854

0 commit comments

Comments
 (0)