Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
swetha1654 committed Jan 31, 2025
1 parent ae3ce1b commit f11d9ab
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,9 @@ async def test_hockeypuck_health(hockeypuck_k8s_app: Application) -> None:
act: Do a get request to the main page.
assert: Returns 200 and the page contains the correct data.
"""
status = await hockeypuck_k8s_app.model.get_status()
unit_ips = [
unit.address for unit in status.applications[hockeypuck_k8s_app.name].units.values()
]
for unit_ip in unit_ips:
for unit in hockeypuck_k8s_app.units:

url = f"http://{unit_ip}:11371"
url = f"http://{unit.address}:11371"
res = requests.get(
url,
timeout=120,
Expand Down

0 comments on commit f11d9ab

Please sign in to comment.