Skip to content

Fix unit tests#27

Merged
rekmarks merged 4 commits intomainfrom
fix-tests
Jan 13, 2021
Merged

Fix unit tests#27
rekmarks merged 4 commits intomainfrom
fix-tests

Conversation

@rekmarks
Copy link
Copy Markdown
Member

The unit tests make requests to Infura. This package was using the deprecated (removed?) Infura v1 API. This PR adds the rc dependency such that developers can add their Infura API keys for tests. It also adds the creation of an rc file for CI.

@rekmarks rekmarks requested a review from a team as a code owner January 13, 2021 06:54
@rekmarks rekmarks mentioned this pull request Jan 13, 2021
@rekmarks
Copy link
Copy Markdown
Member Author

Notice how tests are failing for #26 at the moment.

Copy link
Copy Markdown
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

This is better than failing tests, but it's still not great to be hitting Infura in unit tests 😬. What would it take to replace this with ganache instead? We'd probably need to deploy this method registry contract I'm guessing.

astarinmymind
astarinmymind previously approved these changes Jan 13, 2021
Copy link
Copy Markdown
Contributor

@astarinmymind astarinmymind left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Copy link
Copy Markdown
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

@rekmarks rekmarks merged commit 25cfa3f into main Jan 13, 2021
@rekmarks rekmarks deleted the fix-tests branch January 13, 2021 18:15
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