Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix bogus conformance failure due to time zones#1344

Merged
srenatus merged 1 commit into
dexidp:masterfrom
concourse:pr/fix-conformance-time-comparison
Nov 16, 2018
Merged

fix bogus conformance failure due to time zones#1344
srenatus merged 1 commit into
dexidp:masterfrom
concourse:pr/fix-conformance-time-comparison

Conversation

@vito
Copy link
Copy Markdown
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
Copy Markdown
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