1
0

fix(tests): subscription test fixtures

This commit is contained in:
kolaente
2023-01-12 17:14:17 +01:00
parent 5e6bff20f8
commit 03b7fa6dd3
2 changed files with 9 additions and 4 deletions

View File

@ -295,11 +295,11 @@ func TestSubscriptionGet(t *testing.T) {
s := db.NewSession()
defer s.Close()
// Task 21 belongs to project 12 which the user has subscribed to
// Task 21 belongs to project 32 which the user has subscribed to
sub, err := GetSubscription(s, SubscriptionEntityTask, 21, u)
assert.NoError(t, err)
assert.NotNil(t, sub)
assert.Equal(t, int64(3), sub.ID)
assert.Equal(t, int64(8), sub.ID)
})
})
t.Run("invalid type", func(t *testing.T) {