-
Notifications
You must be signed in to change notification settings - Fork 263
Improve vault s happy path test #1604
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
Conversation
Hardhat Unit Tests Coverage SummaryDiff against masterResults for commit: b768b14 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Optional unpause of PDG in tests
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.
Pull request overview
This PR improves test organization by moving the ensurePredepositGuaranteeUnpaused call from global protocol context setup to individual test files. It also extends the vault's happy path test with additional test cases for ownership transfer and withdrawal functionality.
- Removes global
ensurePredepositGuaranteeUnpausedcall fromgetProtocolContextto allow better test isolation - Adds explicit
ensurePredepositGuaranteeUnpausedcalls to each test file that requires the predeposit guarantee to be unpaused - Adds new test cases for vault ownership transfer and withdrawal in the happy path scenario
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
lib/protocol/context.ts |
Removes the global ensurePredepositGuaranteeUnpaused call and its import from the context initialization |
test/integration/vaults/scenario/pdg-deposit.integration.ts |
Adds explicit call to ensurePredepositGuaranteeUnpaused before test setup |
test/integration/vaults/scenario/node-operator.happy-path.integration.ts |
Adds explicit call to ensurePredepositGuaranteeUnpaused in the test setup |
test/integration/vaults/scenario/happy-path.integration.ts |
Adds ensurePredepositGuaranteeUnpaused call and two new test cases for ownership transfer and withdrawal |
test/integration/vaults/pdg.integration.ts |
Adds explicit call to ensurePredepositGuaranteeUnpaused before test setup |
test/integration/vaults/gate-seal-pause.integration.ts |
Adds ensurePredepositGuaranteeUnpaused calls to multiple test cases that verify pausing functionality |
test/integration/vaults/disconnected.integration.ts |
Adds ensurePredepositGuaranteeUnpaused call in the deposits test section setup |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
dry914
left a comment
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.
LGTM
No description provided.