Fix tests

This commit is contained in:
kolaente 2021-02-14 18:31:56 +01:00
parent 41b6fcedf4
commit d6e8e0de31
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ func TestNamespace_ReadOne(t *testing.T) {
assert.True(t, IsErrNamespaceDoesNotExist(err))
})
t.Run("with subscription", func(t *testing.T) {
n := &Namespace{ID: 1}
n := &Namespace{ID: 7}
db.LoadAndAssertFixtures(t)
s := db.NewSession()
defer s.Close()

View File

@ -474,7 +474,7 @@ func TestTask_ReadOne(t *testing.T) {
s := db.NewSession()
defer s.Close()
task := &Task{ID: 12}
task := &Task{ID: 22}
err := task.ReadOne(s, u)
assert.NoError(t, err)
assert.NotNil(t, task.Subscription)