Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
amandahla committed Jan 6, 2025
1 parent 8104fa9 commit 57d3c9d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/integration/test_scaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ async def test_synapse_scaling_nginx_configured(
)
assert ops_test.model
status = await ops_test.model.get_status()
unit = list(status.applications[synapse_app.name].units)[1]
unit = list(status.applications[synapse_app.name].units)[1] # type: ignore[union-attr]
address = status["applications"][synapse_app.name]["units"][unit]["address"]

logger.info("Units: %s", list(status.applications[synapse_app.name].units))
logger.info("Requesting %s", f"http://{address}:8008/")
response_worker = requests.get(
f"http://{address}:8008/", headers={"Host": synapse_app.name}, timeout=5
Expand Down Expand Up @@ -83,7 +82,7 @@ async def test_synapse_scaling_down(
)
assert ops_test.model
status = await ops_test.model.get_status()
for unit in list(status.applications[synapse_app.name].units):
for unit in list(status.applications[synapse_app.name].units): # type: ignore[union-attr]
address = status["applications"][synapse_app.name]["units"][unit]["address"]
response_worker = requests.get(
f"http://{address}:8080/", headers={"Host": synapse_app.name}, timeout=5
Expand All @@ -99,7 +98,7 @@ async def test_synapse_scaling_down(
)
assert ops_test.model
status = await ops_test.model.get_status()
for unit in list(status.applications[synapse_app.name].units):
for unit in list(status.applications[synapse_app.name].units): # type: ignore[union-attr]
address = status["applications"][synapse_app.name]["units"][unit]["address"]
response_worker = requests.get(
f"http://{address}:8080/", headers={"Host": synapse_app.name}, timeout=5
Expand Down

0 comments on commit 57d3c9d

Please sign in to comment.