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 signature date tests #4957

Merged
merged 2 commits into from
Nov 8, 2024
Merged

Fix signature date tests #4957

merged 2 commits into from
Nov 8, 2024

Conversation

tahsinaislam
Copy link
Contributor

@tahsinaislam tahsinaislam commented Nov 8, 2024

Is PM acceptance required? (delete one)

  • No - merge after code review approval

What was done?

Refactored some tests for signature dates on pdfs so that it will pass no matter when it is run. Previously tests could not be run after midnight UTC because the signature date would be set on the date of the timezone. Now all signature dates set to specific time instead of time.now.

How to test?

  • Updated unit tests

Copy link

github-actions bot commented Nov 8, 2024

Heroku app: https://gyr-review-app-4957-31dbd0322f20.herokuapp.com/
View logs: heroku logs --app gyr-review-app-4957 (optionally add --tail)

@tahsinaislam tahsinaislam marked this pull request as ready for review November 8, 2024 16:08
Copy link
Contributor

@mrotondo mrotondo left a comment

Choose a reason for hiding this comment

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

This fixes the issue where certain tests would fail when run after midnight in the state's time zone, but before midnight in the test runner's time zone.

@tahsinaislam tahsinaislam merged commit 2f8054c into main Nov 8, 2024
7 checks passed
@tahsinaislam tahsinaislam deleted the fix-datetime-flaky-tests branch November 8, 2024 22:38
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