Skip to content

Commit

Permalink
fixed network tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PietroPasotti committed Dec 5, 2023
1 parent bd28d79 commit 3af35d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_e2e/test_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ def test_ip_get(mycharm):
) as mgr:
# we have a network for the relation
rel = mgr.charm.model.get_relation("metrics-endpoint")
assert str(mgr.charm.model.get_binding(rel).network.bind_address) == "1.1.1.1"
assert str(mgr.charm.model.get_binding(rel).network.bind_address) == "192.0.2.0"

# we have a network for a binding without relations on it
assert (
str(mgr.charm.model.get_binding("deadnodead").network.bind_address)
== "1.1.1.1"
== "192.0.2.0"
)

# and an extra binding
Expand Down

0 comments on commit 3af35d0

Please sign in to comment.