1
0

fix(test): don't check for error

This commit is contained in:
kolaente
2023-09-13 12:52:42 +02:00
parent 054f21821c
commit addcbdd8ca

View File

@ -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)