ignore empty dialect in TestManyToManyWithMultiPrimaryKeys

This commit is contained in:
bom_d_van 2015-04-16 17:36:22 +08:00
parent d61af54b96
commit 5aca010140
1 changed files with 1 additions and 1 deletions

View File

@ -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{