@@ -206,7 +206,7 @@ func TestAPIUpdateBranch(t *testing.T) {
206206 })
207207 t .Run ("UpdateBranchWithNonAdminDoer" , func (t * testing.T ) {
208208 // don't allow default branch renaming
209- resp := testAPIUpdateBranch (t , "user4 " , "user2" , "repo1" , "master" , "new-branch-name" , http .StatusForbidden )
209+ resp := testAPIUpdateBranch (t , "user40 " , "user2" , "repo1" , "master" , "new-branch-name" , http .StatusForbidden )
210210 assert .Contains (t , resp .Body .String (), "User must be a repo or site admin to rename default or protected branches." )
211211
212212 // don't allow protected branch renaming
@@ -216,7 +216,7 @@ func TestAPIUpdateBranch(t *testing.T) {
216216 }).AddTokenAuth (token )
217217 MakeRequest (t , req , http .StatusCreated )
218218 testAPICreateBranchProtection (t , "protected-branch" , 1 , http .StatusCreated )
219- resp = testAPIUpdateBranch (t , "user4 " , "user2" , "repo1" , "protected-branch" , "new-branch-name" , http .StatusForbidden )
219+ resp = testAPIUpdateBranch (t , "user40 " , "user2" , "repo1" , "protected-branch" , "new-branch-name" , http .StatusForbidden )
220220 assert .Contains (t , resp .Body .String (), "User must be a repo or site admin to rename default or protected branches." )
221221 })
222222 t .Run ("RenameBranchNormalScenario" , func (t * testing.T ) {
0 commit comments