Skip to content
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

Modified the rumer integration test to work in different time zones #7390

Merged

Conversation

jmcameron
Copy link
Collaborator

@jmcameron jmcameron commented Dec 27, 2023

When I run the integration tests in Pacific time (UTC - 8 hours), the RUMER integration test fails. I tracked this down to the way that the Javascript Date() function treats inputs. If the input is only a date, it interprets it as UTC, but if it includes a time, it treats it as local time. (See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format). I was able to work around the problem with the test by adding a time component to the date strings in the test.

This is apparently the same issue pointed out by @sfount in Issue #1793. Also by @mbayopanda in Issue #3157.

See also Issue #7385.

If this passes the github CI/semaphore tests, I think this modification will not present problems for running tests in DR Congo.

@jniles, please run the integration tests in your time zone.

Note: This PR only impacts tests, so should not prevent moving ahead on a release.

@jniles
Copy link
Collaborator

jniles commented Dec 27, 2023

Seem like a reasonable temporary solution to me. LGTM.

@jniles jniles merged commit 23ff772 into IMA-WorldHealth:master Dec 27, 2023
2 checks passed
@jmcameron jmcameron deleted the fix-integration-test-for-tz branch December 28, 2023 00:55
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