Skip to content

Fix broken tests due to timezones. - #779

Merged
bigkevmcd merged 1 commit into
mainfrom
fix-failing-local-test
Oct 26, 2026
Merged

bigkevmcd merged 1 commit into
mainfrom
fix-failing-local-test

Conversation

@bigkevmcd

Copy link
Copy Markdown
Contributor

While reviewing #778 I trigged a timezone related bug

This fixes two tests that were generating output that was dependent on the timezone.

In both cases, now was formatted to include the timezone name which was failing on my machine.

This fixes two tests that were generating output that was dependent on
the timezone.

In both cases, now was formatted to include the timezone name which was
failing on my machine.
@bigkevmcd
bigkevmcd requested a review from a team as a code owner October 26, 2026 10:41
@bigkevmcd
bigkevmcd requested a lite review from Copilot October 26, 2026 10:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The timezone-dependent tests are consistently normalized to UTC, with no unresolved review issues.

No open issues 🎉

What changed in this PR

This pull request fixes timezone-dependent test output by generating timestamps in UTC for project and cluster member tests.

Changes:

  • Use time.Now().UTC() in the project member test.
  • Use time.Now().UTC() in the cluster member test.
  • Ensure formatted expected output is consistent across local timezones.
File Description
cmd/​project_test.go Uses a UTC timestamp for deterministic project member output assertions.
cmd/​cluster_test.go Uses a UTC timestamp for deterministic cluster member output assertions.

Review effort: Lite

@bigkevmcd
bigkevmcd merged commit 251cb67 into main Oct 26, 2026
3 checks passed
@bigkevmcd
bigkevmcd deleted the fix-failing-local-test branch October 26, 2026 11:25
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.

3 participants