Keep the state folder's name in the lock tests
CI / tests (pull_request) Successful in 5m5s

This commit is contained in:
2026-12-03 15:33:17 +01:00
parent 4e7ec0b210
commit 520baec8eb
+2 -2
View File
@@ -256,7 +256,7 @@ class StartChunks(unittest.TestCase):
def test_says_why_it_cannot_take_the_lock_on_starting_windows(self):
(self.home / ".local" / "state").mkdir(parents=True)
(self.home / ".local" / "state" / "build-release").write_text("")
(self.home / ".local" / "state" / "loop-claude").write_text("")
started = self.start(FakeEffects())
self.assertIsInstance(started, Failure)
self.assertTrue(started.reason.startswith(f"cannot lock {self.home}/.local/state/loop-claude/"), started.reason)
@@ -267,7 +267,7 @@ class StartChunks(unittest.TestCase):
def test_a_chunk_reads_the_other_windows_where_it_cannot_take_the_lock(self):
(self.home / ".local" / "state").mkdir(parents=True)
(self.home / ".local" / "state" / "build-release").write_text("")
(self.home / ".local" / "state" / "loop-claude").write_text("")
fake = FakeEffects(windows="item-7\t0\t@1\nitem-9\t1\t@3\n")
self.assertEqual(chunk_windows.held_beside("item-7", str(self.root), paths.paths_from(self.home), fake.effects()), [9])