test(core): release shell test locations (#35271)

This commit is contained in:
Kit Langton
2026-07-04 10:54:34 -04:00
committed by GitHub
parent a15afbe8f2
commit 5b44e5bf41
+5 -3
View File
@@ -171,9 +171,11 @@ const withSession = <A, E, R>(directory: string, body: (registry: ToolRegistry.I
}) })
const locations = yield* LocationServiceMap.Service const locations = yield* LocationServiceMap.Service
const locationLayer = locations.get(location) const locationLayer = locations.get(location)
const registry = yield* ToolRegistry.Service.pipe(Effect.provide(locationLayer)) return yield* Effect.gen(function* () {
yield* waitForTool(registry, ShellTool.name) const registry = yield* ToolRegistry.Service
return yield* body(registry).pipe(Effect.provide(locationLayer)) yield* waitForTool(registry, ShellTool.name)
return yield* body(registry)
}).pipe(Effect.provide(locationLayer), Effect.ensuring(locations.invalidate(location)))
}) })
describe("ShellTool", () => { describe("ShellTool", () => {