Skip to content
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

write happy path tests for automation23 registrar registerUpkeep() #12474

Merged
merged 3 commits into from
Mar 19, 2024

Conversation

RyanRHall
Copy link
Contributor

No description provided.

Copy link
Contributor

I see you updated files related to contracts. Please run pnpm changeset in the contracts directory to add a changeset.

Copy link
Contributor

Go solidity wrappers are out-of-date, regenerate them via the make wrappers-all command

shileiwill
shileiwill previously approved these changes Mar 18, 2024
Copy link
Contributor

@shileiwill shileiwill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -14,7 +15,116 @@ contract SetUp is BaseTest {
function setUp() public override {
super.setUp();
(registry, registrar) = deployAndConfigureAll();
vm.stopPrank(); // reset identity at the start of each test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

Copy link
Contributor

Go solidity wrappers are out-of-date, regenerate them via the make wrappers-all command

@cl-sonarqube-production
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@RyanRHall RyanRHall added this pull request to the merge queue Mar 19, 2024
@@ -60,6 +65,9 @@ contract BaseTest is Test {
USDTOKEN_USD_FEED = new MockV3Aggregator(8, 100_000_000); // $1
FAST_GAS_FEED = new MockV3Aggregator(0, 1_000_000_000); // 1 gwei

TARGET1 = new MockUpkeep();
TARGET2 = new MockUpkeep();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit, TARGET2 is not used anywhere.

Code LGTM. let me know when you are ready, will stamp again.

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 19, 2024
@RyanRHall RyanRHall added this pull request to the merge queue Mar 19, 2024
Merged via the queue into develop with commit 8578502 Mar 19, 2024
116 of 117 checks passed
@RyanRHall RyanRHall deleted the foundry-registrar-2-3-tests branch March 19, 2024 20:10
kidambisrinivas pushed a commit that referenced this pull request Mar 27, 2024
…12474)

* write happy path tests for automation23 registrar registerUpkeep()

* regerate wrappers

* rename UpkeepMock --> MockUpkeep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants