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

Improve etherscan and brownie tests #342

Merged
merged 3 commits into from
Jan 6, 2023

Conversation

elopez
Copy link
Member

@elopez elopez commented Jan 5, 2023

No description provided.

@elopez elopez force-pushed the dev-fix-etherscan-brownie branch from 93957e0 to 0a298ba Compare January 5, 2023 14:07
elopez added 2 commits January 5, 2023 11:13
Etherscan performs a 1/5s rate limit when using no API key, so this
adds a small random sleep to avoid the second test failing if it
executes fast enough.
brownie sometimes fails on CI with the following message

    ConnectionError: Status 403 when retrieving repo brownie-mix/token information from GHAPI: 'API rate limit exceeded for 40.77.45.130. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)'

This passes GITHUB_TOKEN onto the test environment to increase the rate limit.
@elopez elopez force-pushed the dev-fix-etherscan-brownie branch from 0a298ba to 30333e5 Compare January 5, 2023 14:13
@elopez elopez marked this pull request as ready for review January 5, 2023 15:11
Copy link
Contributor

@bohendo bohendo 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!

scripts/ci_test_etherscan.sh Outdated Show resolved Hide resolved
@montyly montyly merged commit 441cabd into crytic:dev Jan 6, 2023
@elopez elopez deleted the dev-fix-etherscan-brownie branch January 6, 2023 16:21
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