Fix repo scope in TestGPGKeys again

This commit is contained in:
harryzcy 2022-10-30 02:12:46 -04:00
parent 0bee969682
commit 182b984785
No known key found for this signature in database
GPG key ID: CC2953E050C19686

View file

@ -21,7 +21,7 @@ type makeRequestFunc func(testing.TB, *http.Request, int) *httptest.ResponseReco
func TestGPGKeys(t *testing.T) { func TestGPGKeys(t *testing.T) {
defer tests.PrepareTestEnv(t)() defer tests.PrepareTestEnv(t)()
session := loginUser(t, "user2") session := loginUser(t, "user2")
token := getTokenForLoggedInUser(t, session) token := getTokenForLoggedInUser(t, session, "repo")
tokenWithGPGKeyScope := getTokenForLoggedInUser(t, session, "admin_gpg_key", "repo") tokenWithGPGKeyScope := getTokenForLoggedInUser(t, session, "admin_gpg_key", "repo")
tt := []struct { tt := []struct {