diff --git a/tests/query_test.go b/tests/query_test.go index f3b00f8b..2f761d1c 100644 --- a/tests/query_test.go +++ b/tests/query_test.go @@ -206,7 +206,7 @@ func TestFind(t *testing.T) { } }) - t.Run("NotFoundAsNil", func(t *testing.T) { + t.Run("KeepResultAsNil", func(t *testing.T) { var first *User if err := DB.Where("name = ?", "find not found").First(&first).Error; err != nil { AssertEqual(t, err, gorm.ErrRecordNotFound)