From 6da7e8c64e381d0e126d1590ad6e7ab9c334f5aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vytautas=20=C5=A0altenis?= Date: Sat, 12 Jul 2014 13:33:48 +0300 Subject: [PATCH] Fix couple misleading test failure messages --- main_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {