From c0c58e1e86d83c0841bd9f564e8ba08defa29912 Mon Sep 17 00:00:00 2001 From: Daniel Schreij Date: Wed, 10 Jan 2024 17:24:03 +0100 Subject: [PATCH] Fix first test --- main_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main_test.go b/main_test.go index 7324f378..e930d39e 100644 --- a/main_test.go +++ b/main_test.go @@ -15,7 +15,7 @@ func TestGORM(t *testing.T) { tx.Create(&user) var result User - if err := DB.First(&result, user.ID).Error; err != nil { + if err := tx.First(&result, user.ID).Error; err != nil { t.Errorf("Failed, got error: %v", err) } tx.Rollback()