Skip to content

Commit 1887f45

Browse files
committed
test(server): recheck parent PR links after linking the child
1 parent a88d4bb commit 1887f45

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎apps/server/src/orchestration-v2/Orchestrator.control-reads.test.ts‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -619,10 +619,8 @@ it.effect("keeps delegated child pull-request links independent of the parent",
619619
linkedChild.thread.pullRequests?.map((link) => link.number),
620620
[456],
621621
);
622-
assert.deepEqual(
623-
(yield* projections.getThreadProjection(parentThreadId)).thread.linkedPullRequest,
624-
parentPullRequest,
625-
);
626-
assert.deepEqual(updatedParent.thread.pullRequests, parent.thread.pullRequests);
622+
const parentAfterChildLink = yield* projections.getThreadProjection(parentThreadId);
623+
assert.deepEqual(parentAfterChildLink.thread.linkedPullRequest, parentPullRequest);
624+
assert.deepEqual(parentAfterChildLink.thread.pullRequests, parent.thread.pullRequests);
627625
}).pipe(Effect.provide(testLayer)),
628626
);

0 commit comments

Comments
 (0)