Skip to content

Commit 5c8c922

Browse files
author
Roman Golov
committed
Fix scanner tests
1 parent 6e24f28 commit 5c8c922

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

internal/query/scanner/indexed_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ func TestIndexed(t *testing.T) {
399399
{func(v uint64) *uint64 { return &v }(100500)},
400400
{func(v int64) *int64 { return &v }(100500)},
401401
{func(v int32) *int32 { return &v }(100500)},
402-
{func(v time.Time) *time.Time { return &v }(time.Unix(8683200000, 0))},
402+
{func(v time.Time) *time.Time { return &v }(time.Unix(8683200000, 0).UTC())},
403403
},
404404
},
405405
{

internal/query/scanner/named_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ func TestNamed(t *testing.T) {
411411
{func(v uint64) *uint64 { return &v }(100500)},
412412
{func(v int64) *int64 { return &v }(100500)},
413413
{func(v int32) *int32 { return &v }(100500)},
414-
{func(v time.Time) *time.Time { return &v }(time.Unix(8683200000, 0))},
414+
{func(v time.Time) *time.Time { return &v }(time.Unix(8683200000, 0).UTC())},
415415
},
416416
},
417417
{

internal/query/scanner/struct_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ func TestStruct(t *testing.T) {
477477
Int8Int32: 123,
478478
Int8Int16: 123,
479479
BoolBool: true,
480-
DateTime: time.Unix(8683200000, 0),
480+
DateTime: time.Unix(8683200000, 0).UTC(),
481481
DatetimeTime: time.Unix(100500, 0),
482482
TimestampTime: time.Unix(12345678987, 654321000),
483483
}, dst)

0 commit comments

Comments
 (0)