diff --git a/tests/postgres_test.go b/tests/postgres_test.go index e732b9ee..764a0673 100644 --- a/tests/postgres_test.go +++ b/tests/postgres_test.go @@ -83,7 +83,9 @@ func TestMany2ManyWithDefaultValueUUID(t *testing.T) { t.Fatalf("Failed to create 'uuid-ossp' extension, but got error %v", err) } - DB.Migrator().DropTable(&Post{}, &Category{}, "post_categories") + if err := DB.Migrator().DropTable(&Post{}, &Category{}, "post_categories"); err != nil { + t.Error(err) + } if err := DB.AutoMigrate(&Post{}, &Category{}); err != nil { t.Error(err) }