diff --git a/tests/go.mod b/tests/go.mod index 36c7310c..4fddb662 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -4,8 +4,7 @@ go 1.14 require ( github.com/google/uuid v1.3.0 - github.com/jackc/pgtype v1.9.1 // indirect - github.com/jackc/pgx/v4 v4.14.0 // indirect + github.com/jackc/pgx/v4 v4.14.1 // indirect github.com/jinzhu/now v1.1.3 github.com/lib/pq v1.10.4 golang.org/x/crypto v0.0.0-20211117183948-ae814b36b871 // indirect diff --git a/tests/migrate_test.go b/tests/migrate_test.go index 5cdf8e74..789a5e45 100644 --- a/tests/migrate_test.go +++ b/tests/migrate_test.go @@ -11,7 +11,7 @@ import ( ) func TestMigrate(t *testing.T) { - allModels := []interface{}{&User{}, &Account{}, &Pet{}, &Company{}, &Toy{}, &Language{}, &Coupon{}, &CouponProduct{}} + allModels := []interface{}{&User{}, &Account{}, &Pet{}, &Company{}, &Toy{}, &Language{}} rand.Seed(time.Now().UnixNano()) rand.Shuffle(len(allModels), func(i, j int) { allModels[i], allModels[j] = allModels[j], allModels[i] }) DB.Migrator().DropTable("user_speaks", "user_friends", "ccc") diff --git a/tests/tests_test.go b/tests/tests_test.go index cb73d267..5799662f 100644 --- a/tests/tests_test.go +++ b/tests/tests_test.go @@ -87,7 +87,7 @@ func OpenTestConnection() (db *gorm.DB, err error) { func RunMigrations() { var err error - allModels := []interface{}{&User{}, &Account{}, &Pet{}, &Company{}, &Toy{}, &Language{}} + allModels := []interface{}{&User{}, &Account{}, &Pet{}, &Company{}, &Toy{}, &Language{}, &Coupon{}, &CouponProduct{}} rand.Seed(time.Now().UnixNano()) rand.Shuffle(len(allModels), func(i, j int) { allModels[i], allModels[j] = allModels[j], allModels[i] })