Skip to content

Commit ccde2f6

Browse files
committed
Review comments
1 parent cacec87 commit ccde2f6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/delete_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ package tests
4040

4141
import (
4242
"errors"
43+
"strings"
4344
"testing"
4445

4546
. "github.com/oracle-samples/gorm-oracle/tests/utils"
@@ -419,7 +420,11 @@ func TestHardDeleteAfterSoftDelete(t *testing.T) {
419420
}
420421

421422
func TestDeleteWithLimitAndOrder(t *testing.T) {
422-
DB.Exec(`DROP TABLE "users"`).Commit()
423+
if err := DB.Exec(`DROP TABLE "users"`).Commit().Error; err != nil {
424+
if !strings.Contains(err.Error(), "ORA-00942") {
425+
t.Fatalf("Failed to migrate, got error: %s", err)
426+
}
427+
}
423428
users := []User{
424429
*GetUser("del-limited-1", Config{}),
425430
*GetUser("del-limited-2", Config{}),

0 commit comments

Comments
 (0)