Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: improve ipc path test #2410

Merged
merged 2 commits into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading