-
Notifications
You must be signed in to change notification settings - Fork 136
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
Test: timezone issue while running mage tests #3791
Comments
Hey @briheet, Is this issue still relevant? Did you make the tests pass on your end? |
I see the same issue when running tests locally. |
We had a workaround around this which can be solved outside of changing code. @richscott I think you had an approach for this, mind sharing it? |
The workaround I used was to override the host’s time zone by doing |
A better, more permanent fix for this would be to change the test in |
Describe the bug
While checking out the issue with improving repo test coverage, i ran
mage tests
which gave the following resultsgroupjobs_test.go:1113: Error Trace: /home/briheet/Open/armada/internal/lookoutv2/repository/groupjobs_test.go:1113 /home/briheet/Open/armada/internal/lookoutv2/repository/groupjobs_test.go:28 /home/briheet/Open/armada/internal/common/database/db_testutil.go:59 /home/briheet/Open/armada/internal/common/database/lookout/util.go:15 /home/briheet/Open/armada/internal/lookoutv2/repository/groupjobs_test.go:24 /home/briheet/Open/armada/internal/lookoutv2/repository/groupjobs_test.go:1011 Error: Not equal: expected: []*model.JobGroup{(*model.JobGroup)(0xc00025fc00), (*model.JobGroup)(0xc00025fd40), (*model.JobGroup)(0xc00025fe00), (*model.JobGroup)(0xc00025ff40)} actual : []*model.JobGroup{(*model.JobGroup)(0xc000692020), (*model.JobGroup)(0xc000692040), (*model.JobGroup)(0xc000692140), (*model.JobGroup)(0xc0006921c0)}
DONE 2034 tests, 3 failures in 151.295s
Error: exit status 1
Files Or Markdown that can reproduce the issue
mage tests
Expected behavior
It should clear all the tests.
Imporvement
Adding a function which converts to UTC and formats would help us. If this is ok, i could push a small pr :)
The text was updated successfully, but these errors were encountered: