Skip to content

Commit 039588f

Browse files
ClaudiaFangclaude
andcommitted
fix(test): capture post-push head before asserting no-op repeat push
headAfterFirst was captured before the first push instead of after, so expectNoCommitSince compared against the pre-push head — failing on the commit the first push itself legitimately created, not on any duplicate mutation from the second push. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 54e3fb7 commit 039588f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

e2e/suites/source-control-flows.e2e.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,12 +627,12 @@ describe('Source Control Flows E2E', () => {
627627
await s.baseline(p, 'v1');
628628
s.writeLocal(p, 'v2');
629629

630-
const headAfterFirst = await s.head();
631630
const first = await s.push([p]);
632631
expect(first.success, describePushResult(first)).toBe(1);
633632
await s.expectRemoteContent(p, 'v2');
634633
const shaAfterFirst = s.metadataSha(p);
635634
expect(shaAfterFirst).toBeTruthy();
635+
const headAfterFirst = await s.head();
636636

637637
const second = await s.push([p]);
638638
expect(second.success, describePushResult(second)).toBe(0);

0 commit comments

Comments
 (0)