Skip to content

fix: make history entry test independent of local timezone - #994

Merged
HalFrgrd merged 1 commit into
HalFrgrd:masterfrom
elseawhy:fix-history-test-timezone
Sep 9, 2026
Merged

HalFrgrd merged 1 commit into
HalFrgrd:masterfrom
elseawhy:fix-history-test-timezone

Conversation

@elseawhy

@elseawhy elseawhy commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Fixes a flaky test test_pipeline_history_entry_formatting that fails for anyone executing the test in a timezone east of the UK.

The test previously asserted that a hardcoded Unix timestamp would render as exactly "Time: 2026-07-30".
This works in UTC+0 and UTC+1, but for timezones further east (like UTC+08:00), the local time rolls over to "2026-07-31", causing the assertion to fail.
This PR fixes the issue by computing the expected local date dynamically using the same format_local_datetime() function that the code uses under the hood.

@elseawhy
elseawhy force-pushed the fix-history-test-timezone branch from cea9611 to 7bcb594 Compare September 8, 2026 06:07
@HalFrgrd

HalFrgrd commented Sep 9, 2026

Copy link
Copy Markdown
Owner

ty!

@HalFrgrd
HalFrgrd merged commit 9956098 into HalFrgrd:master Sep 9, 2026
7 checks passed
@elseawhy
elseawhy deleted the fix-history-test-timezone branch September 10, 2026 05:47
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