Skip to content

Commit 5d621e1

Browse files
committed
test(usage): drop the v4 upgrade test's now-redundant cache write wait
1 parent ef17a32 commit 5d621e1

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎apps/server/src/usage/UsageService.test.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,8 +1177,7 @@ describe("UsageService", () => {
11771177
return text;
11781178
});
11791179

1180-
const restarted = yield* UsageService.make;
1181-
const summary = yield* restarted.readSummary(WINDOW);
1180+
const summary = yield* (yield* UsageService.make).readSummary(WINDOW);
11821181
// The live rollout re-parses at the ultrafast rate (10 x 6); the
11831182
// deleted one keeps its saved v4 usage at the standard rate (20 x 1).
11841183
assert.strictEqual(totalOutputTokens(summary), 30);
@@ -1191,9 +1190,6 @@ describe("UsageService", () => {
11911190
yield* Effect.promise(() => NodeFSP.readFile(legacyPath, "utf8")),
11921191
legacy,
11931192
);
1194-
// The migrated cache is written in the background; let it land before
1195-
// the layer removes the state directory under it.
1196-
yield* restarted.awaitPersisted;
11971193
}).pipe(
11981194
Effect.provide(
11991195
layerService({

0 commit comments

Comments
 (0)