Skip to content

Commit

Permalink
test: update attach tests for new temp_host fixture eth-brownie#1533
Browse files Browse the repository at this point in the history
  • Loading branch information
danceratopz committed May 17, 2022
1 parent 8b8a05f commit c93ff8f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/network/rpc/test_attach.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ def test_attach_lookup_error(no_rpc):
no_rpc.attach("http://127.0.0.1:7545")


def test_already_active(temp_rpc, temp_port):
def test_already_active(temp_rpc, temp_port, temp_host):
with pytest.raises(SystemError):
temp_rpc.attach(f"http://127.0.0.1:{temp_port}")
temp_rpc.attach(f"http://{temp_host}:{temp_port}")


def test_attach(attachable_rpc, temp_port):
attachable_rpc.attach(f"http://127.0.0.1:{temp_port}")
def test_attach(attachable_rpc, temp_port, temp_host):
attachable_rpc.attach(f"http://{temp_host}:{temp_port}")
attachable_rpc.process = None
attachable_rpc.attach(("127.0.0.1", temp_port))
attachable_rpc.attach((f"{temp_host}", temp_port))
assert attachable_rpc.is_active()


Expand Down

0 comments on commit c93ff8f

Please sign in to comment.