Skip to content

Commit 494921a

Browse files
fix my own test to use master branch
1 parent edb4486 commit 494921a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/gpg_ssh_git_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,14 +373,14 @@ func TestTrustedSSHKeys(t *testing.T) {
373373

374374
username := "user2"
375375
testCtx := NewAPITestContext(t, username, "repo-test-trusted-ssh-keys", auth_model.AccessTokenScopeWriteRepository, auth_model.AccessTokenScopeWriteUser)
376-
t.Run("CheckMainBranchSignedVerified", doAPIGetBranch(testCtx, "main", func(t *testing.T, branch api.Branch) {
376+
t.Run("CheckMasterBranchSignedVerified", doAPIGetBranch(testCtx, "master", func(t *testing.T, branch api.Branch) {
377377
require.NotNil(t, branch.Commit, "no commit provided with branch! %v", branch)
378378
require.NotNil(t, branch.Commit.Verification, "no verification provided with branch commit! %v", branch.Commit)
379379
require.True(t, branch.Commit.Verification.Verified)
380380
}))
381381

382382
setting.Repository.Signing.TrustedSSHKeys = []string{}
383-
t.Run("CheckMainBranchSignedUnverified", doAPIGetBranch(testCtx, "main", func(t *testing.T, branch api.Branch) {
383+
t.Run("CheckMasterBranchSignedUnverified", doAPIGetBranch(testCtx, "master", func(t *testing.T, branch api.Branch) {
384384
require.NotNil(t, branch.Commit, "no commit provided with branch! %v", branch)
385385
require.NotNil(t, branch.Commit.Verification, "no verification provided with branch commit! %v", branch.Commit)
386386
require.False(t, branch.Commit.Verification.Verified)

0 commit comments

Comments
 (0)