Skip to content

Commit a91310b

Browse files
committed
Fix fetch tests given timeout
1 parent 2d7c6f4 commit a91310b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/cloud/src/__tests__/ShareService.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ describe("ShareService", () => {
9393
"User-Agent": "Roo-Code 1.0.0",
9494
},
9595
body: JSON.stringify({ taskId: "task-123", visibility: "organization" }),
96+
signal: expect.any(AbortSignal),
9697
})
9798
expect(vscode.env.clipboard.writeText).toHaveBeenCalledWith("https://app.roocode.com/share/abc123")
9899
})
@@ -120,6 +121,7 @@ describe("ShareService", () => {
120121
"User-Agent": "Roo-Code 1.0.0",
121122
},
122123
body: JSON.stringify({ taskId: "task-123", visibility: "public" }),
124+
signal: expect.any(AbortSignal),
123125
})
124126
})
125127

@@ -146,6 +148,7 @@ describe("ShareService", () => {
146148
"User-Agent": "Roo-Code 1.0.0",
147149
},
148150
body: JSON.stringify({ taskId: "task-123", visibility: "organization" }),
151+
signal: expect.any(AbortSignal),
149152
})
150153
})
151154

0 commit comments

Comments
 (0)