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

tests: Fix flaky test. #1538

Merged
merged 1 commit into from
May 30, 2023
Merged

tests: Fix flaky test. #1538

merged 1 commit into from
May 30, 2023

Conversation

winder
Copy link
Contributor

@winder winder commented May 30, 2023

Summary

The assertion that itx is not present in the txn string is not strong enough. There is random data in the note field and on occasion it contains itx and causes the test to fail. By including the quotes around itx in the condition, it is no longer possible to match with random data in the note field.

Test Plan

N/A

@codecov
Copy link

codecov bot commented May 30, 2023

Codecov Report

Merging #1538 (4af11f2) into develop (95c34a2) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop    #1538   +/-   ##
========================================
  Coverage    68.21%   68.21%           
========================================
  Files           38       38           
  Lines         7485     7485           
========================================
  Hits          5106     5106           
  Misses        1949     1949           
  Partials       430      430           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@tzaffi tzaffi left a comment

Choose a reason for hiding this comment

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

Good catch!

@winder winder merged commit c11881a into algorand:develop May 30, 2023
@winder winder deleted the will/fix-flake branch May 30, 2023 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants