fix(test): adjust fixture id
This commit is contained in:
parent
3b00a5c200
commit
d7396fac57
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user