-
Notifications
You must be signed in to change notification settings - Fork 9
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
Feat/test improvements #46
Conversation
@@ -14,6 +14,7 @@ | |||
"not-rely-on-time": "off", | |||
"one-contract-per-file": "off", | |||
"var-name-mixedcase": "off", | |||
"immutable-vars-naming": "off" | |||
"immutable-vars-naming": "off", | |||
"no-console": "warn" |
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.
Thank you, I sometimes forget to remove the console.log
@@ -25,35 +23,38 @@ contract EmailRecoveryManager_Integration_Test is | |||
} | |||
|
|||
function test_RevertWhen_HandleAcceptanceCalled_BeforeConfigureRecovery() public { |
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.
Is it okay to remove this vm.prank?
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.
Yeah it is unnecessary when calling instance1.uninstallModule
and similar functions on instance1
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.
reviewed and approved.
This PR:
Might be a difficult one to review without good context on how the tests are structured. Would try:
Base.t.sol
has everything you would expectcomputeEmailAuthAddress
as that is a virtual function inBase.t.sol
and is implemented in other base testsdeployModule
as that is a virtual function inBase.t.sol
and is implemented in other base testsThere is still some work to be done here, for example abstracting away
handleRecovery
helper functions into fewer base test files. That will be covered in a future PR that can be merged on top of the audit fixes