We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d2c485 commit ce2c079Copy full SHA for ce2c079
tests/delete_test.go
@@ -40,7 +40,6 @@ package tests
40
41
import (
42
"errors"
43
- "strings"
44
"testing"
45
46
. "github.com/oracle-samples/gorm-oracle/tests/utils"
@@ -420,11 +419,7 @@ func TestHardDeleteAfterSoftDelete(t *testing.T) {
420
419
}
421
422
func TestDeleteWithLimitAndOrder(t *testing.T) {
423
- if err := DB.Exec(`DROP TABLE "users" CASCADE CONSTRAINTS`).Error; err != nil {
424
- if !strings.Contains(err.Error(), "ORA-00942") {
425
- t.Fatalf("Failed to migrate, got error: %s", err)
426
- }
427
+ RunMigrations()
428
users := []User{
429
*GetUser("del-limited-1", Config{}),
430
*GetUser("del-limited-2", Config{}),
0 commit comments