8000 Run tests in utc by oturpe · Pull Request #9168 · jekyll/jekyll · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Run tests in utc #9168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 7, 2022
Merged

Run tests in utc #9168

merged 1 commit into from
Nov 7, 2022

Conversation

oturpe
Copy link
Contributor
@oturpe oturpe commented Oct 24, 2022

This is a 🐛 bug fix.

  • I've added tests (if it's a bug, feature or enhancement)
  • I've adjusted the documentation (if it's a feature or enhancement)
  • The test suite passes locally (run script/cibuild to verify this)

Summary

If on a system where system timezone is not +00,
when tests are launched with 'script/test', test case
"TestFilters#test_: filters jsonify filter should convert drop to json"
fails due to difference in expected and actual value of 'date'.
This difference equals the system timezone offset.
Some other forms of lauching tests do work,
such as 'script/test test/test_filters.rb'.

Make the tests run correctly regardless of system timezone
by setting TZ=UTC.

Context

Not related to a GitHub issue.

If on a system where system timezone is not +00,
when tests are launched with 'script/test', test case
"TestFilters#test_: filters jsonify filter should convert drop to json"
fails due to difference in expected and actual value of 'date'.
This difference equals the system timezone offset.
Some other forms of lauching tests do work,
such as 'script/test test/test_filters.rb'.

Make the tests run correctly regardless of system timezone
by setting TZ=UTC.
@yboulkaid
Copy link
Contributor

I have also stumbled upon this when running tests locally, that would be nice to get in!

@ashmaroli
Copy link
Member

Thanks @oturpe
@jekyllbot: merge +dev

@jekyllbot jekyllbot merged commit 28a475a into jekyll:master Nov 7, 2022
jekyllbot added a commit that referenced this pull request Nov 7, 2022
github-actions bot pushed a commit that referenced this pull request Nov 7, 2022
Otto Liljalaakso: Run tests in UTC timezone (#9168)

Merge pull request 9168
@oturpe oturpe deleted the run-tests-in-utc branch November 7, 2022 07:35
@oturpe
Copy link
Contributor Author
oturpe commented Nov 7, 2022

Thank you!

@jekyll jekyll locked and limited conversation to collaborators Nov 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0