summaryrefslogtreecommitdiffstats
path: root/routers/web/repo/wiki_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/repo/wiki_test.go')
-rw-r--r--routers/web/repo/wiki_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/repo/wiki_test.go b/routers/web/repo/wiki_test.go
index df565487f1..14cb893d46 100644
--- a/routers/web/repo/wiki_test.go
+++ b/routers/web/repo/wiki_test.go
@@ -5,7 +5,7 @@
package repo
import (
- "io/ioutil"
+ "io"
"net/http"
"testing"
@@ -47,7 +47,7 @@ func wikiContent(t *testing.T, repo *models.Repository, wikiName string) string
reader, err := entry.Blob().DataAsync()
assert.NoError(t, err)
defer reader.Close()
- bytes, err := ioutil.ReadAll(reader)
+ bytes, err := io.ReadAll(reader)
assert.NoError(t, err)
return string(bytes)
}