Sitelet https://github.com/qos-ch/logback-access/pull/26
Skip to content

Make 'default' timezone deterministic in ConverterTest - #26

Open
rnorth wants to merge 1 commit into
qos-ch:mainfrom
rnorth:deterministic-tz-in-test
Open

rnorth wants to merge 1 commit into
qos-ch:mainfrom
rnorth:deterministic-tz-in-test

Conversation

@rnorth

@rnorth rnorth commented Jul 22, 2025

Copy link
Copy Markdown

When running tests locally, ConverterTest.testDateConverter was failing for me. It seems like the test would only pass when run in a UTC+2h timezone (setting the TZ env var confirms).

I've added an override for the JVM timezone during the particular test case in question, which enables the test to pass regardless of the contributor's location.

I also added @Test annotation to testLineLocalPortConverter method, which looked like it was accidentally omitted.

@rnorth
rnorth force-pushed the deterministic-tz-in-test branch from 7036eac to e20df78 Compare July 22, 2025 11:06
Also add `@Test` annotation to `testLineLocalPortConverter` method, which looks like it was accidentally omitted.

Signed-off-by: Richard North <rich.north@gmail.com>
@rnorth
rnorth force-pushed the deterministic-tz-in-test branch from e20df78 to c7bde82 Compare July 22, 2025 11:06
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.

1 participant