Skip to content

Feat/integration tests refactor#244

Merged
Joeysantoro merged 5 commits intodevelopfrom
feat/integration-tests-refactor
Oct 15, 2021
Merged

Feat/integration tests refactor#244
Joeysantoro merged 5 commits intodevelopfrom
feat/integration-tests-refactor

Conversation

@xklob
Copy link
Contributor

@xklob xklob commented Oct 13, 2021

No description provided.

@xklob xklob changed the base branch from master to develop October 13, 2021 02:49
@@ -70,9 +71,19 @@ async function increaseTime(amount: number) {
}

async function resetTime() {
Copy link
Contributor

@Joeysantoro Joeysantoro Oct 13, 2021

Choose a reason for hiding this comment

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

resetTime is a bit unexpected because it also resets state. Imo all usages should be changed to resetFork

test/helpers.ts Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

this will error if forking=false right?

Copy link
Contributor

Choose a reason for hiding this comment

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

What block does it use?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes it might - fixed just now to make it more clear.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Uses the most recent mainnet block that is viable (ie 3-4 blocks behind head)

Copy link
Contributor

Choose a reason for hiding this comment

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

k

url: `https://eth-mainnet.alchemyapi.io/v2/${mainnetAlchemyApiKey}`,
blockNumber: 13398685
url: `https://eth-mainnet.alchemyapi.io/v2/${mainnetAlchemyApiKey}`
//blockNumber: <set>
Copy link
Contributor

Choose a reason for hiding this comment

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

assuming this is still todo or what

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not todo - just commented so that you can see how to specify a particular block number if you need it.

Joeysantoro
Joeysantoro previously approved these changes Oct 13, 2021
Copy link
Contributor

@Joeysantoro Joeysantoro left a comment

Choose a reason for hiding this comment

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

Fix linting then 🚢

@Joeysantoro Joeysantoro merged commit e97dd84 into develop Oct 15, 2021
@Joeysantoro Joeysantoro deleted the feat/integration-tests-refactor branch October 15, 2021 04:30
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

Comments