fix(test): adjust fixture id

This commit is contained in:
kolaente 2023-03-14 15:52:00 +01:00
parent 3b00a5c200
commit d7396fac57
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

View File

@ -242,14 +242,14 @@ func TestProject_Delete(t *testing.T) {
files.InitTestFileFixtures(t) files.InitTestFileFixtures(t)
s := db.NewSession() s := db.NewSession()
project := Project{ project := Project{
ID: 25, ID: 35,
} }
err := project.Delete(s, &user.User{ID: 6}) err := project.Delete(s, &user.User{ID: 6})
assert.NoError(t, err) assert.NoError(t, err)
err = s.Commit() err = s.Commit()
assert.NoError(t, err) assert.NoError(t, err)
db.AssertMissing(t, "projects", map[string]interface{}{ db.AssertMissing(t, "projects", map[string]interface{}{
"id": 25, "id": 35,
}) })
db.AssertMissing(t, "files", map[string]interface{}{ db.AssertMissing(t, "files", map[string]interface{}{
"id": 1, "id": 1,