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

client/testing: Make simnet tests modular. #1603

Merged
merged 2 commits into from May 13, 2022

Conversation

JoeGruffins
Copy link
Member

@JoeGruffins JoeGruffins commented May 3, 2022

client/testing: Make simnet tests modular.

Change the simnet harness tests to work with all currently supported
assets.

testing/doge: Add delta and gamma nodes.

Because doge does not distinguish between different wallets, it is
difficult to test balance changes when testing, especially if the node
is mining. Add two wallets that don't do anything special to use in
tests.

part of #1565

edit: Not sure if it closes the issue because it also mentions loadbot. Removed the closing phrase.

@JoeGruffins JoeGruffins changed the title client/testing: Make client simnet tests modular. client/testing: Make simnet tests modular. May 3, 2022
@JoeGruffins JoeGruffins force-pushed the testallsimnetassets branch 3 times, most recently from 01d3a7b to 85c64c1 Compare May 4, 2022 08:45
@JoeGruffins
Copy link
Member Author

JoeGruffins commented May 4, 2022

Tests for all assets are passing. eth sometimes fails, but I expect it's because transactions are not mined sometimes. Added a block multiplier to try and solve this.

Two wallets added to the doge harness in order to test balance changes.

This uses constants at the top of the file to choose assets. I thought this was simplest, but open to other ideas.

@JoeGruffins JoeGruffins marked this pull request as ready for review May 4, 2022 08:50
Copy link
Member

@buck54321 buck54321 left a comment

Choose a reason for hiding this comment

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

This works. I'll want to come back and make this easier to set the assets later. Just made a couple of suggestions.

client/core/trade_simnet_test.go Outdated Show resolved Hide resolved
client/core/trade_simnet_test.go Outdated Show resolved Hide resolved
Because doge does not distinguish between different wallets, it is
difficult to test balance changes when testing, especially if the node
is mining. Add two wallets that don't do anything special to use in
tests.
@JoeGruffins JoeGruffins force-pushed the testallsimnetassets branch 2 times, most recently from 34538e7 to 8587fd6 Compare May 12, 2022 06:43
Change the simnet harness tests to work with all currently supported
assets.
@chappjc chappjc merged commit e4c80a7 into decred:master May 13, 2022
@chappjc chappjc added this to the 0.5 milestone May 18, 2022
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.

None yet

3 participants