From 4f6013821a3648810ee3d240fa938e687d3d75f3 Mon Sep 17 00:00:00 2001 From: Danny McCormick Date: Wed, 18 May 2022 08:06:29 -0400 Subject: [PATCH] A few more small nits --- sdks/go/pkg/beam/core/graph/coder/coder_fuzz_test.go | 2 +- sdks/go/pkg/beam/core/graph/mtime/time_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdks/go/pkg/beam/core/graph/coder/coder_fuzz_test.go b/sdks/go/pkg/beam/core/graph/coder/coder_fuzz_test.go index 11c516f73782..f0436cd5506d 100644 --- a/sdks/go/pkg/beam/core/graph/coder/coder_fuzz_test.go +++ b/sdks/go/pkg/beam/core/graph/coder/coder_fuzz_test.go @@ -57,7 +57,7 @@ func FuzzEncodeDecodeDouble(f *testing.F) { actual, err := DecodeDouble(&buf) if err != nil { - t.Fatalf("DecodeDouble(%v) failed: %v", buf, err) + t.Fatalf("DecodeDouble(%v) failed: %v", &buf, err) } if math.Abs(actual-a) > floatPrecision { t.Fatalf("got %f, want %f +/- %f", actual, a, floatPrecision) diff --git a/sdks/go/pkg/beam/core/graph/mtime/time_test.go b/sdks/go/pkg/beam/core/graph/mtime/time_test.go index 26e2289172dd..951bd3360447 100644 --- a/sdks/go/pkg/beam/core/graph/mtime/time_test.go +++ b/sdks/go/pkg/beam/core/graph/mtime/time_test.go @@ -238,7 +238,7 @@ func TestToTime(t *testing.T) { } for _, test := range tests { t.Run(test.name, func(t *testing.T) { - if got, want := test.input.ToTime(), test.expOut; got != want { + if got, want := test.input.ToTime(), test.expOut; !got.Equal(want) { t.Errorf("ToTime(%v), got %v, want %v", test.input, got, want) } })