aboutsummaryrefslogtreecommitdiffstats
path: root/api/graphql
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-12-27 19:39:09 +0100
committerMichael Muré <batolettre@gmail.com>2022-12-27 19:39:09 +0100
commitb27958758fe59f3c984243f4ad3cb8bcb4f43e86 (patch)
treed04c5e9b3baf91a14c32aa742938ada718f07914 /api/graphql
parent8cea6c7515e42cb8821a03c9bfebb0a8f63a01be (diff)
downloadgit-bug-b27958758fe59f3c984243f4ad3cb8bcb4f43e86.tar.gz
cache: simplify cache building events handling
Diffstat (limited to 'api/graphql')
-rw-r--r--api/graphql/graphql_test.go5
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)
}