aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-12-27 11:19:45 +0100
committerMichael Muré <batolettre@gmail.com>2022-12-27 11:19:45 +0100
commit13a7a5991761eefc00facdc0c7dbc3eb150d6959 (patch)
treeb96a90acf330f4172e6c0ba935b6599f2a1aa9f8 /api
parentf94616ec76e01145a7b2b90c11b27a25d4a4be96 (diff)
downloadgit-bug-13a7a5991761eefc00facdc0c7dbc3eb150d6959.tar.gz
cache: tie the last printf in an event to make the core print free
Diffstat (limited to 'api')
-rw-r--r--api/http/git_file_handlers_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/api/http/git_file_handlers_test.go b/api/http/git_file_handlers_test.go
index b2371abf..7be4aff6 100644
--- a/api/http/git_file_handlers_test.go
+++ b/api/http/git_file_handlers_test.go
@@ -22,8 +22,11 @@ func TestGitFileHandlers(t *testing.T) {
repo := repository.CreateGoGitTestRepo(t, false)
mrc := cache.NewMultiRepoCache()
- repoCache, _, err := mrc.RegisterDefaultRepository(repo)
+ repoCache, events, err := mrc.RegisterDefaultRepository(repo)
require.NoError(t, err)
+ for event := range events {
+ require.NoError(t, event.Err)
+ }
author, err := repoCache.Identities().New("test identity", "test@test.org")
require.NoError(t, err)