From dca4217501562506b57cf23263c8294bbe2496bf Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Thu, 22 Oct 2026 19:35:29 +0200 Subject: [PATCH] test_runtime: the rollback tests wait 30 s for the restored launch (5 s was shorter than a Windows engine start); the two failures and the teardown error were a timeout, the rollback itself works Same failure on v0.2.2 (011c9e600): the failed new start is refused for its port as intended, the old config is relaunched, but it was still loading when the 5 s startup wait ended, so rolled_back was False and the left-over process held the temp folder at teardown. --- tests/terminal/test_runtime.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/terminal/test_runtime.py b/tests/terminal/test_runtime.py index 3c2a15ae..5db3cfe6 100644 --- a/tests/terminal/test_runtime.py +++ b/tests/terminal/test_runtime.py @@ -675,7 +675,7 @@ class RuntimeTests(unittest.TestCase): self.config.write_text(json.dumps(edited), encoding="utf-8") plan = runtime.plan_restart("local", allow_source_migration=True) code, result = self._cli("restart", "--profile", "local", "--allow-source-migration", - "--startup-wait", "5", "--wait", "20", + "--startup-wait", "30", "--wait", "20", "--if-source-sha256", plan["candidate_source_sha256"]) self.assertEqual(code, 6) self.assertFalse(result["ok"]) @@ -772,7 +772,7 @@ class RuntimeTests(unittest.TestCase): proposed["source_config"] = str(next_config) profiles.save("local", proposed, expected_revision=revision) digest = hashlib.sha256(next_config.read_bytes()).hexdigest() - result = runtime.restart("local", timeout=20, startup_wait=5, allow_source_switch=True, + result = runtime.restart("local", timeout=20, startup_wait=30, allow_source_switch=True, expected_source_sha256=digest) self.assertFalse(result["ok"]) self.assertTrue(result["rolled_back"])