diff options
Diffstat (limited to 'api/graphql/graphql_test.go')
-rw-r--r-- | api/graphql/graphql_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/api/graphql/graphql_test.go b/api/graphql/graphql_test.go index a8dfad3f..b9ced703 100644 --- a/api/graphql/graphql_test.go +++ b/api/graphql/graphql_test.go @@ -19,8 +19,7 @@ func TestQueries(t *testing.T) { random_bugs.FillRepoWithSeed(repo, 10, 42) mrc := cache.NewMultiRepoCache() - _, events, err := mrc.RegisterDefaultRepository(repo) - require.NoError(t, err) + _, events := mrc.RegisterDefaultRepository(repo) for event := range events { require.NoError(t, event.Err) } @@ -217,6 +216,6 @@ func TestQueries(t *testing.T) { } } - err = c.Post(query, &resp) + err := c.Post(query, &resp) assert.NoError(t, err) } |