-
Notifications
You must be signed in to change notification settings - Fork 711
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
Tidy up and restructure of pool unit-tests #3507
Conversation
Ben-PH
commented
Feb 7, 2023
•
edited
Loading
edited
- document all added functions
- try in sandbox /simulation/labnet
- unit tests on the added/changed features
- make tests compile
- make tests pass
- add logs allowing easy debugging in case the changes caused problems
- if the API has changed, update the API specification
d928f4b
to
47e1b73
Compare
for i in 0..18 { | ||
let expire_period: u64 = 40 + i; | ||
let op = OpGenerator::default() |
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.
Ideally this code could be handled by a helper method, as similar work is done in the other test functions. This is not so straight forward, as there are subtle differences between the tests that would make this doable, but in my view "clever for the sake of clever", and not of significant benefit in this context.
This PR Is still in draft what's the current state ? |
Needed to ask you about: a) the flakey tests. They fail every now and then, but generally, the CI accounts for that with its retries. I believe it will reliably fail if there is a bug that it's checking for. Not sure what the CI failure is about, though. |
Thanks for precisions @Ben-PH let's review it and merge it as it is for now and iterate in the futur to avoid letting this PR die. Can you update on testnet_20 to fix the gas_calibration check and put it as ready ? |
re-ran the failed CI test. Passed. marking as ready. |
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.
That's really nice, we cover a lot more cases now. Nice work !
3489: Testnet 20 r=AurelienFT a=AurelienFT Merged in this testnet: - #3475 - #3549 - #3562 - #3462 - #3492 - #3502 - #3495 - #3556 - #3511 - #3498 - #3566 - #3557 - #3576 - #3579 - #3507 - #3585 - #3587 - #3580 - #3590 - #3549 - #3455 - #3601 - #3602 - #3606 - #3588 - #3603 - #3554 Co-authored-by: AurelienFT <aurelien.foucault@epitech.eu> Co-authored-by: Ben PHL <benphawke@gmail.com> Co-authored-by: Modship <yeskinokay@gmail.com> Co-authored-by: Ben <benphawke@gmail.com> Co-authored-by: Eitu33 <89928840+Eitu33@users.noreply.github.com> Co-authored-by: Sydhds <sylvain.delhomme@gmail.com> Co-authored-by: modship <lu@massa.net> Co-authored-by: Moncef AOUDIA <22281426+aoudiamoncef@users.noreply.github.com> Co-authored-by: Moncef AOUDIA <ma@massa.net>