aboutsummaryrefslogtreecommitdiffstats
path: root/models/repo/wiki_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/repo/wiki_test.go')
-rw-r--r--models/repo/wiki_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/models/repo/wiki_test.go b/models/repo/wiki_test.go
index 0157b7735d..103420a392 100644
--- a/models/repo/wiki_test.go
+++ b/models/repo/wiki_test.go
@@ -4,7 +4,6 @@
package repo_test
import (
- "context"
"path/filepath"
"testing"
@@ -19,7 +18,7 @@ func TestRepository_WikiCloneLink(t *testing.T) {
assert.NoError(t, unittest.PrepareTestDatabase())
repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1})
- cloneLink := repo.WikiCloneLink(context.Background(), nil)
+ cloneLink := repo.WikiCloneLink(t.Context(), nil)
assert.Equal(t, "ssh://sshuser@try.gitea.io:3000/user2/repo1.wiki.git", cloneLink.SSH)
assert.Equal(t, "https://try.gitea.io/user2/repo1.wiki.git", cloneLink.HTTPS)
}