diff --git a/main_test.go b/main_test.go index 018324da..6f4061da 100644 --- a/main_test.go +++ b/main_test.go @@ -1083,7 +1083,7 @@ func TestUpdate(t *testing.T) { } if db.First(&Product{}, "code = '789'").Error != nil { - t.Errorf("Product 456 should be changed to 789") + t.Errorf("Product 123 should be changed to 789") } if db.Model(product2).Update("CreatedAt", time.Now().Add(time.Hour)).Error != nil { @@ -1111,7 +1111,7 @@ func TestUpdate(t *testing.T) { } if db.First(&Animal{}, "name = 'Franz'").Error != nil { - t.Errorf("Product 'nerdz' should be changed to 'Franz'") + t.Errorf("Animal 'nerdz' should be changed to 'Franz'") } if db.Model(animal2).Update("CreatedAt", time.Now().Add(time.Hour)).Error != nil {