fix: change test case name
This commit is contained in:
parent
c8ccb9c3cc
commit
1c02efdff7
@ -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
|
var first *User
|
||||||
if err := DB.Where("name = ?", "find not found").First(&first).Error; err != nil {
|
if err := DB.Where("name = ?", "find not found").First(&first).Error; err != nil {
|
||||||
AssertEqual(t, err, gorm.ErrRecordNotFound)
|
AssertEqual(t, err, gorm.ErrRecordNotFound)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user