From 2a788fb20c3cbc73e96aa422b7477fe62d23964a Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Mon, 17 Oct 2022 17:01:00 +0800 Subject: [PATCH] Upgrade tests go.mod --- tests/go.mod | 10 +++++----- tests/sql_builder_test.go | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/go.mod b/tests/go.mod index bf59e8d2..2fef9d97 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -3,15 +3,15 @@ module gorm.io/gorm/tests go 1.16 require ( - github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect github.com/google/uuid v1.3.0 github.com/jinzhu/now v1.1.5 github.com/lib/pq v1.10.7 - golang.org/x/crypto v0.0.0-20221005025214-4161e89ecf1b // indirect - gorm.io/driver/mysql v1.4.1 + golang.org/x/crypto v0.0.0-20221012134737-56aed061732a // indirect + golang.org/x/text v0.3.8 // indirect + gorm.io/driver/mysql v1.4.3 gorm.io/driver/postgres v1.4.4 - gorm.io/driver/sqlite v1.4.1 - gorm.io/driver/sqlserver v1.4.0 + gorm.io/driver/sqlite v1.4.2 + gorm.io/driver/sqlserver v1.4.1 gorm.io/gorm v1.24.0 ) diff --git a/tests/sql_builder_test.go b/tests/sql_builder_test.go index a9b920dc..b10142fa 100644 --- a/tests/sql_builder_test.go +++ b/tests/sql_builder_test.go @@ -367,7 +367,7 @@ func TestToSQL(t *testing.T) { t.Skip("Skip SQL Server for this test, because it too difference with other dialects.") } - date, _ := time.Parse("2006-01-02", "2021-10-18") + date, _ := time.ParseInLocation("2006-01-02", "2021-10-18", time.Local) // find sql := DB.ToSQL(func(tx *gorm.DB) *gorm.DB {