Skip to content

Commit dba5189

Browse files
Jorropogopherbot
authored andcommitted
time: fix FuzzFormatRFC3339 nano comparison
Change-Id: I13ed84b99459d5844abb6e932cc4b8e0bd3ae9f5 Reviewed-on: https://go-review.googlesource.com/c/go/+/561215 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: David Chase <[email protected]>
1 parent 7c4ee1b commit dba5189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/time/format_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ func FuzzFormatRFC3339(f *testing.F) {
10011001

10021002
gotNanos := AppendFormatRFC3339(ts, nil, true)
10031003
wantNanos := AppendFormatAny(ts, nil, RFC3339Nano)
1004-
if !bytes.Equal(got, want) {
1004+
if !bytes.Equal(gotNanos, wantNanos) {
10051005
t.Errorf("Format(%s, RFC3339Nano) mismatch:\n\tgot: %s\n\twant: %s", ts, gotNanos, wantNanos)
10061006
}
10071007
})

0 commit comments

Comments
 (0)