Skip to content

Commit

Permalink
A few more small nits
Browse files Browse the repository at this point in the history
  • Loading branch information
damccorm committed May 18, 2022
1 parent d47164c commit 4f60138
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdks/go/pkg/beam/core/graph/coder/coder_fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion sdks/go/pkg/beam/core/graph/mtime/time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})
Expand Down

0 comments on commit 4f60138

Please sign in to comment.