-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fix tests from 1835 changes and default to 1559 fields for testing #2053
Fix tests from 1835 changes and default to 1559 fields for testing #2053
Conversation
5af1986
to
44a93ac
Compare
1277e66
to
f1b4040
Compare
9e4149a
to
ca957fb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thanks for being so persistent with these tests! I just left one comment about putting back the error expectation that you can take or leave, whatever makes sense
try: | ||
web3.geth.miner.start() | ||
super().test_eth_replace_transaction_already_mined(web3, unlocked_account_dual_type) | ||
finally: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, nice!
@pytest.mark.skip(reason="London TODO: crashes on [address_conversion_func1]") | ||
@pytest.mark.xfail( | ||
strict=False, | ||
reason='Sometimes a TimeoutError is hit when waiting for the txn to be mined', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this consistently fails on one error type, we should add the raises
line back in so that we know it's flaky in the way we think it's flaky
ca957fb
to
1c178cd
Compare
…debugging / curiosity
- Fixed tests that were failing from the implementation of the new EIP-1559 fields (maxFeePerGas and maxPriorityFeePerGas). Updated most of our existing tests to use these new fields in order to encourage their use / be updated to the new standard. - Updated documentation around unit and integration testing and how to contribute to our test suite.
1c178cd
to
5e011f5
Compare
What was wrong?
Related to Issue #1835
How was it fixed?
Some older tests seemed to be breaking others because they did not meet updated requirements to be included in a pending block, seemingly creating a txn jam. Increasing
gasPrice
for these tests seemed to move things along. Another issue we have is that some tests have their context dirtied by other tests. I included a way to move some tests to the beginning of the test suite to prevent this dirtied context and allow these tests to pass.Updated default tests to use the new 1559 fields for our transactions.
Todo:
maxFeePerGas
andmaxPriorityFeePerGas
overgasPrice
as defaultsCute Animal Picture