Skip to content

Commit 3a5a974

Browse files
committed
test: Remove CURD test cases to 'tests/gorm' directory for gorm
1 parent a9eeb20 commit 3a5a974

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

tests/gorm/mysql_test.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (s *MySQLSuite) TestCurd1() {
8484
model1.Timestamp1 = *carbon.NewTimestamp(c)
8585

8686
// create
87-
if err := db.Create(&model1).Error; err != nil {
87+
if err = db.Create(&model1).Error; err != nil {
8888
panic(err)
8989
}
9090

@@ -132,7 +132,7 @@ func (s *MySQLSuite) TestCurd1() {
132132
model1.Timestamp1 = *carbon.NewTimestamp(c)
133133

134134
// create
135-
if err := db.Create(&model1).Error; err != nil {
135+
if err = db.Create(&model1).Error; err != nil {
136136
panic(err)
137137
}
138138

@@ -180,7 +180,7 @@ func (s *MySQLSuite) TestCurd1() {
180180
model1.Timestamp1 = *carbon.NewTimestamp(c)
181181

182182
// create
183-
if err := db.Create(&model1).Error; err != nil {
183+
if err = db.Create(&model1).Error; err != nil {
184184
panic(err)
185185
}
186186

@@ -228,7 +228,7 @@ func (s *MySQLSuite) TestCurd1() {
228228
model1.Timestamp1 = *carbon.NewTimestamp(c)
229229

230230
// create
231-
if err := db.Create(&model1).Error; err != nil {
231+
if err = db.Create(&model1).Error; err != nil {
232232
panic(err)
233233
}
234234

@@ -285,7 +285,7 @@ func (s *MySQLSuite) TestCurd2() {
285285
var model1 MySQLModel2
286286

287287
// create
288-
if err := db.Create(&model1).Error; err != nil {
288+
if err = db.Create(&model1).Error; err != nil {
289289
panic(err)
290290
}
291291

@@ -334,7 +334,7 @@ func (s *MySQLSuite) TestCurd2() {
334334
model1.Timestamp1 = carbon.NewTimestamp(c)
335335

336336
// create
337-
if err := db.Create(&model1).Error; err != nil {
337+
if err = db.Create(&model1).Error; err != nil {
338338
panic(err)
339339
}
340340

@@ -382,7 +382,7 @@ func (s *MySQLSuite) TestCurd2() {
382382
model1.Timestamp1 = carbon.NewTimestamp(c)
383383

384384
// create
385-
if err := db.Create(&model1).Error; err != nil {
385+
if err = db.Create(&model1).Error; err != nil {
386386
panic(err)
387387
}
388388

@@ -430,7 +430,7 @@ func (s *MySQLSuite) TestCurd2() {
430430
model1.Timestamp1 = carbon.NewTimestamp(c)
431431

432432
// create
433-
if err := db.Create(&model1).Error; err != nil {
433+
if err = db.Create(&model1).Error; err != nil {
434434
panic(err)
435435
}
436436

@@ -478,7 +478,7 @@ func (s *MySQLSuite) TestCurd2() {
478478
model1.Timestamp1 = carbon.NewTimestamp(c)
479479

480480
// create
481-
if err := db.Create(&model1).Error; err != nil {
481+
if err = db.Create(&model1).Error; err != nil {
482482
panic(err)
483483
}
484484

0 commit comments

Comments
 (0)