Skip to content

Commit 0611093

Browse files
committed
test(discord): align progress timing expectations
1 parent c854a04 commit 0611093

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎extensions/discord/src/monitor/message-handler.process.draft-progress.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ describe("processDiscordMessage draft streaming progress", () => {
9595
expect(draftStream.retarget).toHaveBeenCalledWith("thread-1");
9696
expect(draftStream.update).toHaveBeenLastCalledWith(
9797
expect.stringMatching(
98-
/^Investigating\n\n🛠️ Exec\n.*Checked the pipeline\.\n-# .*🛠️ 1 tool call.*⏱️ 5s$/,
98+
/^Investigating\n\n🛠️ Exec\n.*Checked the pipeline\.\n-# .*🛠️ 1 tool call.*⏱️ 2s$/,
9999
),
100100
);
101101
expect(draftStream.stop).toHaveBeenCalledTimes(1);
@@ -143,7 +143,7 @@ describe("processDiscordMessage draft streaming progress", () => {
143143
kind: "block",
144144
replies: [
145145
expect.objectContaining({
146-
text: expect.stringMatching(/🛠️ 1 tool call.*⏱️ 5s$/),
146+
text: expect.stringMatching(/🛠️ 1 tool call.*⏱️ 2s$/),
147147
}),
148148
],
149149
}),
@@ -185,7 +185,7 @@ describe("processDiscordMessage draft streaming progress", () => {
185185
kind: "block",
186186
replies: [
187187
expect.objectContaining({
188-
text: expect.stringMatching(/🛠️ 1 tool call.*⏱️ 5s$/),
188+
text: expect.stringMatching(/🛠️ 1 tool call.*⏱️ 2s$/),
189189
}),
190190
],
191191
}),

0 commit comments

Comments
 (0)