From ae2fbdf1f02254157a4beba1bee5496d7af2f00a Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Thu, 19 Nov 2026 15:44:58 -0500 Subject: [PATCH] test(links): drop the legacy worktree e2e case the reconcile property covers Removed test_legacy_worktree_membership_moves_to_an_unlinked_origin (exclusive, one restart). Its defect classes: a managed worktree row not replaced by its origin, peers lost or gained in the rewrite, and a second startup rewriting again. links_legacy_test reconcile_keeps_every_peer_relationship and singleton_origins_merge_and_rival_groups_conflict now catch them. The legacy-conflict scenario stays as the startup wiring check. --- e2e/links_test.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/e2e/links_test.py b/e2e/links_test.py index 97891b944..87e81d4a4 100644 --- a/e2e/links_test.py +++ b/e2e/links_test.py @@ -356,25 +356,6 @@ class LinkTests(unittest.TestCase): self.app.restart(prepare=prepare) - @exclusive - def test_legacy_worktree_membership_moves_to_an_unlinked_origin(self): - origin, checkout = self.make_worktree() - peer = self.app.root / "peer" - peer.mkdir() - nested = checkout / "nested" - nested.mkdir() - self.legacy_memberships((checkout, nested, peer)) - - resource = self.group(origin)["configuration_resource"] - self.assertEqual(resource["value"]["members"], [str(origin), str(peer)]) - self.assertEqual(self.group(nested)["configuration_resource"], resource) - self.app.restart() - self.assertEqual(self.group(nested)["configuration_resource"], resource) - self.unlink(nested, peer) - self.assertEqual( - self.group(peer)["configuration_resource"]["value"]["members"], [str(peer)] - ) - @exclusive def test_legacy_conflict_preserves_both_groups_and_refuses_edits(self): origin, checkout = self.make_worktree() -- knotmirror 0.0.1