Skip to content

Commit 031ca68

Browse files
committed
fix test
1 parent a02e12f commit 031ca68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/git_general_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ func doProtectBranch(ctx APITestContext, branch, userToWhitelistPush, userToWhit
484484
// Check if master branch has been locked successfully
485485
flashCookie := ctx.Session.GetCookie(gitea_context.CookieNameFlash)
486486
assert.NotNil(t, flashCookie)
487-
assert.EqualValues(t, "success%3DBranch%2Bprotection%2Bfor%2Brule%2B%2522"+url.QueryEscape(branch)+"%2522%2Bhas%2Bbeen%2Bupdated.", flashCookie.Value)
487+
assert.EqualValues(t, "success%3DBranch%2Bprotection%2Bfor%2Brule%2B%2522"+url.QueryEscape(url.QueryEscape(branch))+"%2522%2Bhas%2Bbeen%2Bupdated.", flashCookie.Value)
488488
}
489489
}
490490

0 commit comments

Comments
 (0)