fix(test): don't check for error
This commit is contained in:
parent
054f21821c
commit
addcbdd8ca
@ -329,8 +329,7 @@ func TestProject_DeleteBackgroundFileIfExists(t *testing.T) {
|
|||||||
err := SetProjectBackground(s, project.ID, file, "")
|
err := SetProjectBackground(s, project.ID, file, "")
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
err = project.DeleteBackgroundFileIfExists()
|
err = project.DeleteBackgroundFileIfExists()
|
||||||
assert.Error(t, err)
|
assert.NoError(t, err)
|
||||||
assert.True(t, files.IsErrFileDoesNotExist(err))
|
|
||||||
})
|
})
|
||||||
t.Run("project without background", func(t *testing.T) {
|
t.Run("project without background", func(t *testing.T) {
|
||||||
db.LoadAndAssertFixtures(t)
|
db.LoadAndAssertFixtures(t)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user