(fsLayer: Layer.Layer<FSUtil.Service>)
| 47 | } |
| 48 | |
| 49 | function authService(fsLayer: Layer.Layer<FSUtil.Service>) { |
| 50 | return McpAuth.Service.use((auth) => Effect.succeed(auth)).pipe( |
| 51 | Effect.provide(AppNodeBuilder.build(McpAuth.node, [[FSUtil.node, fsLayer]])), |
| 52 | ) |
| 53 | } |
| 54 | |
| 55 | test("serializes concurrent auth file updates across service instances", async () => { |
| 56 | const file = authFile() |