Skip to content

Commit

Permalink
Add pytest xfail with strict=False to flaky eth estimate_gas tests.
Browse files Browse the repository at this point in the history
- Added test_eth_get_transaction_receipt_unmined and test_eth_wait_for_transaction_receipt_unmined to the list of flaky tests with timeout issues.
  • Loading branch information
fselmo committed May 2, 2022
1 parent 76434d1 commit 69391b7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion newsfragments/2054.misc.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Update integration test fixture to use geth ``v1.10.17``
Update integration test fixture to use geth ``v1.10.17``. Add pytest ``xfail`` with ``strict=False`` to flaky eth estimate_gas tests.
21 changes: 15 additions & 6 deletions tests/integration/go_ethereum/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
from eth_typing import (
ChecksumAddress,
)
from flaky import (
flaky,
)

from web3._utils.module_testing import ( # noqa: F401
AsyncEthModuleTest,
Expand Down Expand Up @@ -55,24 +52,36 @@ def test_eth_protocol_version(self, w3):
def test_eth_protocolVersion(self, w3):
super().test_eth_protocolVersion(w3)

@flaky(max_runs=3)
@pytest.mark.xfail(reason='Inconsistently creating timeout issues.', strict=False)
def test_eth_estimate_gas(
self, w3: "Web3", unlocked_account_dual_type: ChecksumAddress
) -> None:
super().test_eth_estimate_gas(w3, unlocked_account_dual_type)

@flaky(max_runs=3)
@pytest.mark.xfail(reason='Inconsistently creating timeout issues.', strict=False)
def test_eth_estimateGas_deprecated(
self, w3: "Web3", unlocked_account_dual_type: ChecksumAddress
) -> None:
super().test_eth_estimateGas_deprecated(w3, unlocked_account_dual_type)

@flaky(max_runs=3)
@pytest.mark.xfail(reason='Inconsistently creating timeout issues.', strict=False)
def test_eth_estimate_gas_with_block(
self, w3: "Web3", unlocked_account_dual_type: ChecksumAddress
) -> None:
super().test_eth_estimate_gas_with_block(w3, unlocked_account_dual_type)

@pytest.mark.xfail(reason='Inconsistently creating timeout issues.', strict=False)
def test_eth_get_transaction_receipt_unmined(
self, w3: "Web3", unlocked_account_dual_type: ChecksumAddress
) -> None:
super().test_eth_get_transaction_receipt_unmined(w3, unlocked_account_dual_type)

@pytest.mark.xfail(reason='Inconsistently creating timeout issues.', strict=False)
def test_eth_wait_for_transaction_receipt_unmined(
self, w3: "Web3", unlocked_account_dual_type: ChecksumAddress
) -> None:
super().test_eth_wait_for_transaction_receipt_unmined(w3, unlocked_account_dual_type)


class GoEthereumVersionModuleTest(VersionModuleTest):
@pytest.mark.xfail(reason='eth_protocolVersion was removed in Geth 1.10.0')
Expand Down

0 comments on commit 69391b7

Please sign in to comment.