From 096f8ca75426b6c94a7ab171c138ac05be9b039f Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Thu, 25 Mar 2021 10:07:34 -0400 Subject: [PATCH] Fix test in other time zones --- values_test.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/values_test.go b/values_test.go index 1c744cad..6ae6c8a0 100644 --- a/values_test.go +++ b/values_test.go @@ -808,8 +808,15 @@ func TestPointerPointer(t *testing.T) { t.Errorf("%d. Unexpected failure: %v (sql -> %v, queryArgs -> %v)", i, err, tt.sql, tt.queryArgs) } - if !reflect.DeepEqual(actual, tt.expected) { - t.Errorf("%d. Expected %v, got %v (sql -> %v, queryArgs -> %v)", i, tt.expected, actual, tt.sql, tt.queryArgs) + assert.Equal(t, tt.expected.s, actual.s) + assert.Equal(t, tt.expected.i16, actual.i16) + assert.Equal(t, tt.expected.i32, actual.i32) + assert.Equal(t, tt.expected.i64, actual.i64) + assert.Equal(t, tt.expected.f32, actual.f32) + assert.Equal(t, tt.expected.f64, actual.f64) + assert.Equal(t, tt.expected.b, actual.b) + if tt.expected.t != nil || actual.t != nil { + assert.True(t, tt.expected.t.Equal(*actual.t)) } ensureConnValid(t, conn)