Skip to content

test: Refactor flaky eip1559 tests #59

@0xNeshi

Description

@0xNeshi

Seems that all fee-related tests are subject to flakiness.

Some failures we've caught in CI:

    thread 'eth_namespace::fee::test_estimate_eip1559_fees_with_reward_percentile_based' panicked at tests/eth_namespace/fee.rs:204:5:
    assertion `left == right` failed
      left: Eip1559Estimation { max_fee_per_gas: 4156, max_priority_fee_per_gas: 0 }
     right: Eip1559Estimation { max_fee_per_gas: 3638, max_priority_fee_per_gas: 0 }
    thread 'eth_namespace::fee::test_estimate_eip1559_fees_with_default_estimator' panicked at tests/eth_namespace/fee.rs:104:5:
    assertion `left == right` failed
      left: Eip1559Estimation { max_fee_per_gas: 4157, max_priority_fee_per_gas: 1 }
     right: Eip1559Estimation { max_fee_per_gas: 3639, max_priority_fee_per_gas: 1 }

The problem seems to be that the fee changes between two GET calls.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions