Skip to content

Commit 34e850f

Browse files
committed
test(core): allow cold PowerShell starts in shell permission tests
1 parent 1ac1f23 commit 34e850f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/core/test/tool-shell.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ const withScanner = <A, E, R>(
257257
(tmp) => Effect.promise(() => tmp[Symbol.asyncDispose]().then(() => undefined)),
258258
)
259259

260+
// 15s: a cold PowerShell start alone can take several seconds on hosted CI runners.
260261
const runPermissionCommand = (
261262
registry: Tool.Interface,
262263
command: string,
@@ -287,7 +288,7 @@ const runPermissionCommand = (
287288
expect(yield* permission.list()).toEqual([])
288289
expect(yield* Queue.size(queue)).toBe(0)
289290
return { exit, requests }
290-
}).pipe(Effect.scoped, Effect.timeout(Duration.seconds(5)))
291+
}).pipe(Effect.scoped, Effect.timeout(Duration.seconds(15)))
291292

292293
// Directory cases still document inherited limitations; fixed scanner cases require matching behavior.
293294
describe("ShellTool scanner permissions", () => {

0 commit comments

Comments
 (0)