Closed dolfs closed 5 years ago
The tests are supposed to force the timezone to America/Los_Angeles through this code. I was puzzled why it wouldn't be working, but now I have an idea. Is it possible when your docker instance was set to UTC that the other time zones weren't installed at all?
I suppose the installation instructions have a list of required packages; tzdata
isn't in that list but should be.
During a build in a Docker instance, I got test failures on code that was straight from github/master and built and tested fine on my rPi:
I realized that the Docker instance was on UTC time. I modified the Docker image to be on America/Los_Angeles and run the build again. This time no errors.
The initial built was run at approximately 2018-03-17 06:00 UTC or 2018-03-16 23:00 PDT, the second successful built approximately 30 minutes later (in case the actual time is relevant).
This makes me suspicious of the test code itself, but it may also point at an actual problem in the Moonfire code.