Skip to content

Commit 14b81ef

Browse files
only21milclaude
andcommitted
test(server): count remote reads, not invalidations, in the failed-refresh test
Main's refresh now invalidates remote status twice (invalidateStatus and readRemoteStatus), so counting invalidations no longer counts refreshes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 2a0f11d commit 14b81ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/server/src/vcs/VcsStatusBroadcaster.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,9 +1191,9 @@ describe("VcsStatusBroadcaster", () => {
11911191
yield* Deferred.succeed(release, undefined);
11921192
assert.isTrue(Exit.isFailure(yield* Fiber.join(first)));
11931193
assert.deepStrictEqual((yield* Fiber.join(remaining)).pr, remoteStatusWithPr.pr);
1194-
assert.equal(state.remoteInvalidationCalls, 2);
1194+
assert.equal(state.remoteStatusCalls, 1);
11951195
yield* broadcaster.refreshStatus("/repo");
1196-
assert.equal(state.remoteInvalidationCalls, 3);
1196+
assert.equal(state.remoteStatusCalls, 2);
11971197
}).pipe(Effect.provide(layerTestFor(state)));
11981198
});
11991199
});

0 commit comments

Comments
 (0)