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.
This commit is contained in:
1 parent
84b1e9815e
commit
dca4217501
1 file changed
+2
-2
@@ -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"])
|
||||
|
||||
Reference in new issue
Block a user