Skip to content

Fix flaky GPO exporter test#7400

Merged
matthinz merged 2 commits intomainfrom
matthinz/8233-flaky-gpo-test
Nov 29, 2022
Merged

Fix flaky GPO exporter test#7400
matthinz merged 2 commits intomainfrom
matthinz/8233-flaky-gpo-test

Conversation

@matthinz
Copy link
Contributor

Address a flaky test introduced in #7389.

We run tests in CI with a random Timezone each time. This means sometimes the local day and UTC day are different, which was making the updated GPO exporter test fail.

This change updates GpoConfirmationExporter to convert dates to UTC before outputting them. This gives us consistency on tests but should not matter in prod, where the Timezone is already set to UTC.

For LG-8233

[skip changelog]

Address a flaky test introduced in #7389.

We run tests in CI with a random Timezone each time. This means sometimes the local day and UTC day are different, which was making the GPO exporter test fail.

This change updates `GpoConfirmationExporter` to convert dates to UTC before outputting them. This gives us consistency on tests but should not matter in prod, where the Timezone is already set to UTC.

For LG-8233

[skip changelog]
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
@matthinz matthinz merged commit 8ddac6b into main Nov 29, 2022
@matthinz matthinz deleted the matthinz/8233-flaky-gpo-test branch November 29, 2022 17:24
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