Skip to content

Commit c9ab842

Browse files
raballewclaude
andcommitted
fix: set lease_ended in safety timeout test
The _should_run_after_lease_cleanup guard requires at least one condition to be set. Set lease_ended since the test simulates a scenario where cleanup is forced after timeout. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7f1ac51 commit c9ab842

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

python/packages/jumpstarter/jumpstarter/exporter/exporter_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ async def test_cleanup_forces_hook_set_on_safety_timeout(self):
314314
from unittest.mock import patch
315315

316316
lease_ctx = make_lease_context()
317+
lease_ctx.lease_ended.set()
317318
exporter = make_exporter(lease_ctx)
318319

319320
statuses = []

0 commit comments

Comments
 (0)