From 5aca010140e2cd4b30ce9bbbb2f61e4afc0b8c33 Mon Sep 17 00:00:00 2001 From: bom_d_van Date: Thu, 16 Apr 2015 17:36:22 +0800 Subject: [PATCH] ignore empty dialect in TestManyToManyWithMultiPrimaryKeys --- multi_primary_keys_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multi_primary_keys_test.go b/multi_primary_keys_test.go index 4aa3517e..9ca68d13 100644 --- a/multi_primary_keys_test.go +++ b/multi_primary_keys_test.go @@ -21,7 +21,7 @@ type Tag struct { } func TestManyToManyWithMultiPrimaryKeys(t *testing.T) { - if dialect := os.Getenv("GORM_DIALECT"); dialect != "sqlite" { + if dialect := os.Getenv("GORM_DIALECT"); dialect != "" && dialect != "sqlite" { DB.Exec(fmt.Sprintf("drop table blog_tags;")) DB.AutoMigrate(&Blog{}, &Tag{}) blog := Blog{