-
-
Notifications
You must be signed in to change notification settings - Fork 244
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
Failing tests #268
Comments
I think is exactly what I'm fixing in another project Timezones are always fun and full of surprises. |
But here in the test it could be way simpler Calling |
I will try to provide a fix |
There are many problems in the code right now. They should be addressed But for now, here is a quick fix if you want to launch the unit tests: Take a look at this so you can launch the unit tests by using this $ TZ=PRC go test ./... I'm not saying it's a good solution, I'm saying that's why the CI works while it shouldn't |
I encountered issue with running
go test
in the project's root. Various tests failed for me.Example:
traveler_unit_test.go
, functionTestCarbon_SubNanoseconds
:I expected the test to pass, but it didn't:
I suspect the reason is the fact that I am on a time zone different from the test's author. My time zone:
The text was updated successfully, but these errors were encountered: