Skip to content

fix(coderd): move test location to ignore Australia time saving error #15013

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

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

defelmnq
Copy link
Contributor

@defelmnq defelmnq commented Oct 7, 2024

A test is currently failing because it relies on Sidney Tz.

from the internet :

Daylight Saving Time begins at 2 am (AEST) on the first Sunday in October and ends at 3 am (Australian Eastern Daylight Time) on the first Sunday in April.

Due to that - there's one hour missing in the tests - and the test 6 days are acceptable is failing.

Changing to another timezone to fix the situation, it would require a longer-term solution or making sure it cannot happen anymore.

@defelmnq defelmnq self-assigned this Oct 7, 2024
@defelmnq defelmnq changed the title fix(coderd): change test location to ignore Australia time saving error fix(coderd): move test location to ignore Australia time saving error Oct 7, 2024
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

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

Thanks for the hotfix, approved. And we definitely need to fix the underlying issue later.

@defelmnq defelmnq merged commit 6bf73a5 into main Oct 7, 2024
26 checks passed
@defelmnq defelmnq deleted the fix/failing-coderd-tz branch October 7, 2024 19:10
@github-actions github-actions bot locked and limited conversation to collaborators Oct 7, 2024
@@ -179,17 +179,17 @@ func Test_parseInsightsInterval_week(t *testing.T) {
t.Parallel()

layout := insightsTimeLayout
sydneyLoc, err := time.LoadLocation("Australia/Sydney") // Random location
losAngelesLoc, err := time.LoadLocation("America/Los_Angeles") // Random location
Copy link
Contributor

Choose a reason for hiding this comment

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants