Skip to content

Commit

Permalink
test: rerun random URL connection test if need-be (#2373)
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey authored Nov 5, 2024
1 parent 04ac2f1 commit a84b692
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"pytest-cov>=4.0.0,<5", # Coverage analyzer plugin
"pytest-mock", # For creating mocks
"pytest-benchmark", # For performance tests
"pytest-rerunfailures", # For flakey tests
"pytest-timeout>=2.2.0,<3", # For avoiding timing out during tests
"hypothesis>=6.2.0,<7.0", # Strategy-based fuzzer
"hypothesis-jsonschema==0.19.0", # JSON Schema fuzzer extension
Expand Down
2 changes: 2 additions & 0 deletions tests/functional/geth/test_network_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ def test_fork_upstream_provider(networks, mock_geth_sepolia, geth_provider, mock
del geth_provider.provider_settings["uri"]


# NOTE: Test is flakey because random URLs may be offline when test runs; avoid CI failure.
@pytest.mark.flaky(reruns=5)
@geth_process_test
@pytest.mark.parametrize(
"connection_str", ("moonbeam:moonriver", "https://moonriver.api.onfinality.io/public")
Expand Down

0 comments on commit a84b692

Please sign in to comment.