diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/graphql/graphql_test.go | 5 | ||||
-rw-r--r-- | api/http/git_file_handlers_test.go | 3 |
2 files changed, 3 insertions, 5 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) } diff --git a/api/http/git_file_handlers_test.go b/api/http/git_file_handlers_test.go index 7be4aff6..8319da32 100644 --- a/api/http/git_file_handlers_test.go +++ b/api/http/git_file_handlers_test.go @@ -22,8 +22,7 @@ func TestGitFileHandlers(t *testing.T) { repo := repository.CreateGoGitTestRepo(t, false) mrc := cache.NewMultiRepoCache() - repoCache, events, err := mrc.RegisterDefaultRepository(repo) - require.NoError(t, err) + repoCache, events := mrc.RegisterDefaultRepository(repo) for event := range events { require.NoError(t, event.Err) } |