diff options
author | Jorropo <jorropo.pgm@gmail.com> | 2024-02-05 01:22:58 +0100 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-02-08 23:28:17 +0000 |
commit | dba518999dfb7212f6fbc42d85dd303fcb78baad (patch) | |
tree | 9eef7006e9fa917c47e77ae090b1f77631b6361c /src/time | |
parent | 7c4ee1b1659cec7eb9218fe2fd54e0587ab1dbd9 (diff) | |
download | go-dba518999dfb7212f6fbc42d85dd303fcb78baad.tar.gz go-dba518999dfb7212f6fbc42d85dd303fcb78baad.zip |
time: fix FuzzFormatRFC3339 nano comparison
Change-Id: I13ed84b99459d5844abb6e932cc4b8e0bd3ae9f5
Reviewed-on: https://go-review.googlesource.com/c/go/+/561215
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/time')
-rw-r--r-- | src/time/format_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/format_test.go b/src/time/format_test.go index 8a26eaa35b..29b9c280e6 100644 --- a/src/time/format_test.go +++ b/src/time/format_test.go @@ -1001,7 +1001,7 @@ func FuzzFormatRFC3339(f *testing.F) { gotNanos := AppendFormatRFC3339(ts, nil, true) wantNanos := AppendFormatAny(ts, nil, RFC3339Nano) - if !bytes.Equal(got, want) { + if !bytes.Equal(gotNanos, wantNanos) { t.Errorf("Format(%s, RFC3339Nano) mismatch:\n\tgot: %s\n\twant: %s", ts, gotNanos, wantNanos) } }) |