Skip to content

[test] correct CRL test to be agnostic of local TZ - #377

Open
chadlwilson wants to merge 1 commit into
jruby:0.16from
chadlwilson:fix-test
Open

chadlwilson wants to merge 1 commit into
jruby:0.16from
chadlwilson:fix-test

Conversation

@chadlwilson

@chadlwilson chadlwilson commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

This test fails if running in a local TZ that greater than UTC+6, because it incorrectly fails to normalize to UTC before extracting the date from a zoned timestamp inside a CRL. The actual CRL has revocationDate utcTime Time UTCTime 2014-07-07 18:31:35 UTC.

In UTC+8, that time is not the 7th July; it's the 8th. Need to declare/convert zones properly.

This test fails if running in a local TZ that greater than UTC+6, because it incorrectly fails to normalize to UTC before extracting the date from a zoned timestamp inside a CRL. The actual CRL has `revocationDate utcTime Time UTCTime 2014-07-07 18:31:35 UTC`. In UTC+8, that time is not the 7th July; it's the 8th.

Signed-off-by: Chad Wilson <29788154+chadlwilson@users.noreply.github.com>
@chadlwilson chadlwilson changed the title [test] correct test across TZs [test] correct CRL test to be agnostic of local TZ Sep 22, 2026
@chadlwilson

Copy link
Copy Markdown
Contributor Author

test_socket.rb:121 seems flaky to me, don't think I changed anything there.

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