The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 17:00 UTC
fix(infra): task cache cleanup test provides its service directly (#25164)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 25, 2026 at 17:29 UTC
738fd087076623e159b677e1f87ffe23d2bc7e88
1 file changed
+4
-7
infra/task-cache/src/Cleanup.test.ts
+4
-7
@@ -2,7 +2,6 @@
2
import * as NodeFS from "node:fs";
3
import * as NodeSqlite from "node:sqlite";
4
import * as Effect from "effect/Effect";
5
-import * as Layer from "effect/Layer";
5
import { expect, it } from "@effect/vitest";
6
import { cleanup } from "../vendor/vite-plus-remote-cache-cloudflare/src/database.ts";
7
import * as Cache from "./Cache.ts";
@@ -89,12 +88,10 @@ it.effect("cleans three full disjoint batches within the D1 invocation budget",
88
},
89
} as unknown as Parameters<typeof cleanup>[0];
90
yield* Cleanup.run().pipe(
92
- Effect.provide(
93
- Layer.succeed(Cache.Cache, {
94
- handle: () => Effect.die("unused"),
95
- cleanup: Effect.promise(() => cleanup(env)),
96
- }),
97
- ),
91
+ Effect.provideService(Cache.Cache, {
92
+ handle: () => Effect.die("unused"),
93
+ cleanup: Effect.promise(() => cleanup(env)),
94
+ }),
95
);
96
expect(claims.map((claim) => claim.length)).toEqual([256, 256, 256]);
97
expect(new Set(claims.flat()).size).toBe(768);