summaryrefslogtreecommitdiffstats
path: root/tests/integration/dump_restore_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/dump_restore_test.go')
-rw-r--r--tests/integration/dump_restore_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/integration/dump_restore_test.go b/tests/integration/dump_restore_test.go
index e34738aaf1..9ad795d53a 100644
--- a/tests/integration/dump_restore_test.go
+++ b/tests/integration/dump_restore_test.go
@@ -14,6 +14,7 @@ import (
"strings"
"testing"
+ auth_model "code.gitea.io/gitea/models/auth"
repo_model "code.gitea.io/gitea/models/repo"
"code.gitea.io/gitea/models/unittest"
user_model "code.gitea.io/gitea/models/user"
@@ -50,7 +51,7 @@ func TestDumpRestore(t *testing.T) {
repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{Name: reponame})
repoOwner := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: repo.OwnerID})
session := loginUser(t, repoOwner.Name)
- token := getTokenForLoggedInUser(t, session)
+ token := getTokenForLoggedInUser(t, session, auth_model.AccessTokenScopeRepo)
//
// Phase 1: dump repo1 from the Gitea instance to the filesystem