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

Identities sort by balance test fix #257

Merged
merged 2 commits into from
Sep 20, 2024
Merged

Conversation

owl352
Copy link
Collaborator

@owl352 owl352 commented Sep 7, 2024

Issue

At this moment, our test for identities with sortBy=balance throws error on deepEquals.
The reason for this - Math.random() for balance, sometimes balance on several identities can be the same and that's violates this test

Things done

1000 * Math.random() replaced with 25 * (i+1)
before DAPI mock added mock.reset()
tiny lint

@owl352 owl352 added the backend Related to backend (API) label Sep 7, 2024
@owl352 owl352 requested a review from pshenmic September 7, 2024 18:21
@owl352 owl352 self-assigned this Sep 7, 2024
Copy link

vercel bot commented Sep 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
platform-explorer-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 7, 2024 6:28pm
platform-explorer-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 7, 2024 6:28pm

@pshenmic pshenmic merged commit 07651fa into master Sep 20, 2024
9 checks passed
@owl352 owl352 linked an issue Sep 24, 2024 that may be closed by this pull request
@owl352 owl352 deleted the feat/identities-tests-fix branch November 23, 2024 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend (API)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Correction of minor bugs and minor improvements
2 participants