Skip to content

Commit 472e131

Browse files
committed
fix in_progress flag
1 parent de6980a commit 472e131

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎robot_orchestrator/selfupdate/manager.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ def check_and_stage(self) -> SelfUpdateStatus:
111111
if not self._stage_lock.acquire(blocking=False):
112112
return self.status()
113113
try:
114-
return self._check_and_stage_locked()
114+
result = self._check_and_stage_locked()
115+
result.in_progress = False
116+
return result
115117
finally:
116118
self._stage_lock.release()
117119

‎tests/test_selfupdate_manager.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def test_check_and_stage_is_noop_when_remote_matches_current(env, tmp_path):
103103
status = manager.check_and_stage()
104104

105105
assert status.staged_sha is None
106+
assert status.in_progress is False
106107

107108

108109
def test_check_and_stage_is_noop_when_remote_matches_already_staged(env, tmp_path):

0 commit comments

Comments
 (0)