Skip to content

Commit 9a96809

Browse files
committed
test: fix failing tests
Signed-off-by: Damian Skrzyński <polprog.tech@gmail.com>
1 parent e466222 commit 9a96809

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/opsportal/adapters/releaseboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ async def get_status(self) -> ToolStatus:
197197
proc = self._pm.get(self._process_name)
198198
if proc and proc.status == ProcessStatus.RUNNING:
199199
return ToolStatus.RUNNING
200-
if not shutil.which(self._cli):
200+
if proc and proc.status == ProcessStatus.FAILED:
201201
return ToolStatus.ERROR
202202
return ToolStatus.STOPPED
203203

src/opsportal/adapters/releasepilot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ async def get_status(self) -> ToolStatus:
193193
proc = self._pm.get(self._process_name)
194194
if proc and proc.status == ProcessStatus.RUNNING:
195195
return ToolStatus.RUNNING
196-
if not shutil.which(self._cli):
196+
if proc and proc.status == ProcessStatus.FAILED:
197197
return ToolStatus.ERROR
198198
return ToolStatus.STOPPED
199199

tests/test_ui_regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,4 +259,4 @@ def test_files_under_limit(self, subdir: Path, glob_pattern: str) -> None:
259259
violations.append(f"{f.name}: {lines} lines")
260260

261261
"""THEN no files exceed the limit."""
262-
assert not violations, f"Files exceeding {self.MAX_LINES} lines: " + "; ".join(violations)
262+
assert not violations, f"Files exceeding {self.MAX_LINES} lines: " + "; ".join(violations)

0 commit comments

Comments
 (0)