Skip to content

Commit 29f755e

Browse files
committed
Fix tests
1 parent 4ddd3b4 commit 29f755e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/cloud/src/bridge/__tests__/TaskChannel.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,7 @@ describe("TaskChannel", () => {
299299

300300
// Verify warning was logged
301301
expect(warnSpy).toHaveBeenCalledWith(
302-
"[TaskChannel] Listeners already exist for task, removing old listeners:",
303-
taskId,
302+
`[TaskChannel] Listeners already exist for task, removing old listeners for ${taskId}`,
304303
)
305304

306305
// Verify only one set of listeners exists

src/core/task/__tests__/Task.dispose.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ describe("Task dispose method", () => {
134134

135135
// Verify dispose was called and logged
136136
expect(consoleLogSpy).toHaveBeenCalledWith(
137-
expect.stringContaining(`[Task] disposing task ${task.taskId}.${task.instanceId}`),
137+
expect.stringContaining(`[Task#dispose] disposing task ${task.taskId}.${task.instanceId}`),
138138
)
139139

140140
// Verify removeAllListeners was called first (before other cleanup)

0 commit comments

Comments
 (0)