Skip to content

Conversation

soujay
Copy link
Contributor

@soujay soujay commented Feb 26, 2025

Due to the time component of the mock date, the number of days left for expiration was not consistently returning the correct days left due to timezone off sets. This resulted in some of the licensing tests failing randomly . Eg: https://github.com/Particular/ServicePulse/actions/runs/13488622751/job/37683212711?pr=2259#step:7:3254

This PR resets the time component to zero to remove time zone flakiness in tests

@soujay soujay self-assigned this Feb 26, 2025
@soujay soujay requested a review from johnsimons February 26, 2025 05:00
Copy link
Member

@johnsimons johnsimons left a comment

Choose a reason for hiding this comment

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

LGTM

@soujay soujay marked this pull request as ready for review February 26, 2025 06:09
@soujay soujay merged commit 99c30b6 into master Feb 26, 2025
5 checks passed
@soujay soujay deleted the incorrect-expiration-date-in-tests branch February 26, 2025 06: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.

2 participants