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

🧪 fix flaky test #4367

Merged
merged 1 commit into from
Jan 2, 2025
Merged

🧪 fix flaky test #4367

merged 1 commit into from
Jan 2, 2025

Conversation

sophiamersmann
Copy link
Member

@sophiamersmann sophiamersmann commented Jan 2, 2025

One test in the Marimekko test suite is flaky and (sometimes) fails. It seems to be a rounding issue. Instead of rounding the values ourselves, I use jest's toBeCloseTo that compares floating point values allowing for imprecision.

Copy link
Member Author

sophiamersmann commented Jan 2, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@sophiamersmann sophiamersmann marked this pull request as ready for review January 2, 2025 13:14
@owidbot
Copy link
Contributor

owidbot commented Jan 2, 2025

Quick links (staging server):

Site Dev Site Preview Admin Wizard Docs

Login: ssh owid@staging-site-fix-flaky-test-marimekko

SVG tester:

Number of differences (default views): 0 ✅
Number of differences (all views): 0 ✅

Edited: 2025-01-02 13:17:19 UTC
Execution time: 1.23 seconds

Copy link
Member Author

sophiamersmann commented Jan 2, 2025

Merge activity

  • Jan 2, 9:39 AM EST: A user started a stack merge that includes this pull request via Graphite.
  • Jan 2, 9:40 AM EST: A user merged this pull request with Graphite.

@sophiamersmann sophiamersmann merged commit 9319dae into master Jan 2, 2025
25 checks passed
@sophiamersmann sophiamersmann deleted the fix-flaky-test-marimekko branch January 2, 2025 14:40
sophiamersmann added a commit that referenced this pull request Jan 8, 2025
One test in the Marimekko test suite is flaky and (sometimes) fails. It seems to be a rounding issue. Instead of rounding the values ourselves, I use jest's `toBeCloseTo` that compares floating point values allowing for imprecision.
danyx23 pushed a commit that referenced this pull request Jan 9, 2025
One test in the Marimekko test suite is flaky and (sometimes) fails. It seems to be a rounding issue. Instead of rounding the values ourselves, I use jest's `toBeCloseTo` that compares floating point values allowing for imprecision.
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.

2 participants