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

Use the make_vote function in unit tests #4410

Merged

Conversation

RickiNano
Copy link
Contributor

@RickiNano RickiNano commented Jan 27, 2024

Uses test_util function to create votes in unit tests

resolves #4403

@dsiganos
Copy link
Contributor

The nano::test::make_vote with zero timestamp and zero duration can take advantage of the arguments having defaults arguments set to 0 and not set the last 2 arguments (0, 0). But it is fine as it is, it isn't really a problem as it is.

@dsiganos dsiganos merged commit 449c873 into nanocurrency:develop Jan 30, 2024
18 of 19 checks passed
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.

Use nano::test::make_vote() instead of manually constructing votes in unit tests
2 participants