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

test: fix timezone-related inconsistencies in tests #9083

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

nunogois
Copy link
Member

@nunogois nunogois commented Jan 13, 2025

https://linear.app/unleash/issue/2-3132/fix-tests-to-make-them-timezone-agnostic

Noticed our tests failed for me locally since I'm on a different timezone (Lisbon time, GMT).
This fixes these timezone-related inconsistencies.

Before

image
image

After

image

Copy link

vercel bot commented Jan 13, 2025

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

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Jan 13, 2025 11:14am
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Jan 13, 2025 11:14am

Copy link
Contributor

github-actions bot commented Jan 13, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

@nunogois nunogois force-pushed the test-make-tests-timezone-agnostic branch from 53c25b9 to 746acce Compare January 13, 2025 10:39
expect(rows.find((row) => row.date === '2024-11-07').count).toBe(1); // user2 within retention, user1 expired
expect(rows.find((row) => row.date === '2024-11-10').count).toBe(0); // Both users expired
});
});
Copy link
Member Author

Choose a reason for hiding this comment

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

Confirmed with @sjaanus and we can remove this test now.

@nunogois nunogois force-pushed the test-make-tests-timezone-agnostic branch from 0245bea to 4e2f7ae Compare January 13, 2025 11:13
@nunogois nunogois changed the title test: make tests timezone agnostic test: fix timezone-related inconsistencies in tests Jan 13, 2025
@nunogois nunogois merged commit b0b2836 into main Jan 13, 2025
7 checks passed
@nunogois nunogois deleted the test-make-tests-timezone-agnostic branch January 13, 2025 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants