Skip to content

Commit 191afd0

Browse files
test(server): drop the redundant known-identity refresh case
AI-assisted; verified with the tests and tools listed above.
1 parent f3dbcc8 commit 191afd0

1 file changed

Lines changed: 0 additions & 37 deletions

File tree

‎apps/server/src/orchestration-v2/RunFinalizationService.test.ts‎

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -412,43 +412,6 @@ const layerStubbedIdentityResolver = (
412412
),
413413
);
414414

415-
it.effect(
416-
"keeps a known identity's resolver caches when a turn outlasts the enrichment TTL",
417-
() => {
418-
const { workspaceRoot, threadId, runId } = stubbedIdentityProject;
419-
const refreshFlags: boolean[] = [];
420-
const resolvedAfterTurn = Deferred.makeUnsafe<void>();
421-
return Effect.gen(function* () {
422-
const enrichment = yield* ProjectEnrichment.ProjectEnrichmentService;
423-
assert.isNotNull(yield* enrichment.readRepositoryIdentity(workspaceRoot));
424-
yield* TestClock.adjust("61 seconds");
425-
const observer = yield* RunFinalization.RunFinalizationObserver;
426-
yield* observer.refresh({ cwd: workspaceRoot, threadId, runId });
427-
yield* Deferred.await(resolvedAfterTurn);
428-
assert.deepEqual(
429-
refreshFlags,
430-
[false, false],
431-
"a project with a known identity had its resolver caches forced after the turn",
432-
);
433-
}).pipe(
434-
Effect.provide(
435-
layerStubbedIdentityResolver((_cwd, options) =>
436-
Effect.sync(() => {
437-
refreshFlags.push(options?.refresh === true);
438-
return stubbedIdentity;
439-
}).pipe(
440-
Effect.tap(() =>
441-
refreshFlags.length > 1
442-
? Deferred.succeed(resolvedAfterTurn, undefined)
443-
: Effect.void,
444-
),
445-
),
446-
),
447-
),
448-
);
449-
},
450-
);
451-
452415
it.effect("returns from the post-turn refresh while the identity resolver is still running", () => {
453416
const { workspaceRoot, threadId, runId } = stubbedIdentityProject;
454417
const releaseResolver = Deferred.makeUnsafe<void>();

0 commit comments

Comments
 (0)