-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Update gofuzz dep #4985
Update gofuzz dep #4985
Conversation
Tests fail with a roundtrip error around parsing time. I know you changed that in upstream gofuzz.. --- FAIL: TestRoundTripTypes (5.11s) |
Ah the default fuzz function can generate negative times, which don't roundtrip. Huh, can't decide if this is a bug in time.Unix (which accepts values that produce an invalid time), if fuzz's time function should be changed, or if we should just add a Fuzz() function to util.Time. |
This is what fuzz.Interface is for, I guess... On Tue, Mar 3, 2015 at 9:55 AM, Daniel Smith notifications@github.com
|
And why don't negative times roundtrip? That seems valid. On Tue, Mar 3, 2015 at 12:22 PM, Tim Hockin thockin@google.com wrote:
|
time.Time internal constraints are getting violated: http://golang.org/src/time/time.go?s=1855:2369#L29 |
Updated with latest gofuzz which handles time.Time more correctly. |
Travis disagrees... our time format doesn't marshal nanoseconds. We'll have to write a custom Fuzz() on util.Time(). |
wierd, it passes locally On Thu, Mar 5, 2015 at 10:39 AM, Daniel Smith notifications@github.com
|
I can not fathom how this passes 100% locally but fails on travis |
881e7fe
to
0b75195
Compare
Should pass Travis now |
For anyone watching, semantic deep equal was saying that uncomparable private fields were assumed equal, which let it pass on my machine. But on Travis, something about timezones caused it to fail, exposing the time semantic-equal issue. Now we fuzz to leave off nanosecond and semantic compare in UTC always. |
rebased now |
LGTM |
No description provided.