Skip to content

Commit

Permalink
test: use Time.Equal to compare timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
theandrew168 committed Sep 23, 2021
1 parent 0de12b8 commit 3d18c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pg2s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func TestParseBackupTimestamp(t *testing.T) {
t.Fatal(err)
}

if got != want {
if !got.Equal(want) {
t.Fatalf("want %v, got %v", want, got)
}

Expand Down

0 comments on commit 3d18c23

Please sign in to comment.