diff options
Diffstat (limited to 'routers/repo/wiki_test.go')
-rw-r--r-- | routers/repo/wiki_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/wiki_test.go b/routers/repo/wiki_test.go index 7302f9e48b..4687d24f6b 100644 --- a/routers/repo/wiki_test.go +++ b/routers/repo/wiki_test.go @@ -40,8 +40,9 @@ func wikiContent(t *testing.T, repo *models.Repository, wikiName string) string if !assert.NotNil(t, entry) { return "" } - reader, err := entry.Blob().Data() + reader, err := entry.Blob().DataAsync() assert.NoError(t, err) + defer reader.Close() bytes, err := ioutil.ReadAll(reader) assert.NoError(t, err) return string(bytes) |