Skip to content

Commit

Permalink
test: improve ipc path test (#2410)
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey authored Dec 11, 2024
1 parent bc6c846 commit 01cabb0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/functional/test_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,13 +612,11 @@ def test_ipc_per_network(project, key):
ipc = "path/to/example.ipc"
with project.temp_config(node={"ethereum": {"sepolia": {key: ipc}}}):
node = project.network_manager.ethereum.sepolia.get_provider("node")
if key != "ipc_path":
assert node.uri == ipc
# else: uri gets to set to random HTTP from default settings,
# but we may want to change that behavior.
# TODO: 0.9 investigate not using random if ipc set.

assert node.ipc_path == Path(ipc)
if key == "uri":
assert node.uri == ipc
# else: uri ends up as a random HTTP URI from evmchains.
# TODO: Do we want to change this in 0.9?


def test_snapshot(eth_tester_provider):
Expand Down

0 comments on commit 01cabb0

Please sign in to comment.