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

fix bogus conformance failure due to time zones #1344

Merged

Conversation

vito
Copy link
Contributor

@vito vito commented Nov 15, 2018

this failed on my machine due to the unexported 'loc' field of the time structure - it was nil in one and set to a ton of timezone data in the other. not sure why, but I don't think it's critical to compare these hidden fields so long as the timestamp's actual value is equal.

this failed on my machine due to the unexported 'loc' field of the time
structure - it was nil in one and set to a ton of tiemzone data in the
other. instead let's just compare the unix timestamp value and zero it
out for the struct comparison.
Copy link
Contributor

@srenatus srenatus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. Flaky tests are the worst. 👍

@srenatus srenatus merged commit 13a1679 into dexidp:master Nov 16, 2018
mmrath pushed a commit to mmrath/dex that referenced this pull request Sep 2, 2019
…-comparison

fix bogus conformance failure due to time zones
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