Isolate deployment recovery tests from the Docker daemon
Development CI / check-and-build (push) Successful in 1m59s
GitHub Git mirror / mirror (push) Successful in 6s
Development CI / deploy-development (push) Failing after 7s

This commit is contained in:
eezd committed 2026-11-04 16:51:36 +08:00
1 parent fcd1cfc344
commit d9af783ff2
2 files changed
+1 -2

No files matched your search

+1 -1
View File
@@ -229,7 +229,7 @@ class RecoveryTests(unittest.TestCase):
return '{}'
with patch.object(deploy, 'INSTANCE', directory), patch.object(deploy, 'branch_head', return_value='a' * 40), \
patch.object(deploy, 'validate_images'), patch.object(deploy, 'inspect_services', return_value=running), \
patch.object(deploy, 'run', side_effect=command) as run:
patch.object(deploy, 'run', side_effect=command) as run, patch.object(deploy.subprocess, 'run'):
with self.assertRaisesRegex(RuntimeError, 'Analysis became active'):
deploy.deploy({**previous, 'commit': 'a' * 40}, directory)
self.assertFalse(any('stop' in call.args for call in run.call_args_list))