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 flakiness of imitation transaction tests #1556

Merged
merged 1 commit into from
May 16, 2024
Merged

Conversation

iamacook
Copy link
Member

Summary

The imitation transaction tests were intermittently failing as the mocked transfers could have values of 0. This meant that they were not "trusted" and filtered from results.

This ensures that the transfers always have a value above 0.

Changes

  • Set a minimum value of >0 for transfers in imitation transaction tests

@iamacook iamacook self-assigned this May 16, 2024
@iamacook iamacook requested a review from a team as a code owner May 16, 2024 12:43
Comment on lines +1466 to +1467
const getImitationTokenAddressUrl = `${chain.transactionService}/api/v1/tokens/${imitationToken.address}`;
const getTokenAddressUrl = `${chain.transactionService}/api/v1/tokens/${multisigToken.address}`;
Copy link
Member Author

Choose a reason for hiding this comment

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

I changed this whilst testing and haven't reverted it as it removed the necessity of expecting errors.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 9112484146

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 92.86%

Totals Coverage Status
Change from base Build 9111646834: 0.03%
Covered Lines: 7070
Relevant Lines: 7326

💛 - Coveralls

@iamacook iamacook merged commit 582b36c into main May 16, 2024
16 checks passed
@iamacook iamacook deleted the ap-test-values branch May 16, 2024 14:19
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