summaryrefslogtreecommitdiffstats
path: root/integrations/repo_branch_test.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-11-08 21:24:54 +0000
committerGitHub <noreply@github.com>2020-11-08 16:24:54 -0500
commit271ab63dfa7d4f54fb8fbfd59906546112ef01fc (patch)
tree6e11ecc5eeb3ef700bacf9705c38ce6487fd0b38 /integrations/repo_branch_test.go
parent8a7101fdd39777fe153b232356c0f26750241d4a (diff)
downloadgitea-271ab63dfa7d4f54fb8fbfd59906546112ef01fc.tar.gz
gitea-271ab63dfa7d4f54fb8fbfd59906546112ef01fc.zip
Make TestCreateBranch and TestRepoCommitsSearch less noisy (#13471)
Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'integrations/repo_branch_test.go')
-rw-r--r--integrations/repo_branch_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/integrations/repo_branch_test.go b/integrations/repo_branch_test.go
index 68806f347b..de4e668987 100644
--- a/integrations/repo_branch_test.go
+++ b/integrations/repo_branch_test.go
@@ -104,13 +104,12 @@ func testCreateBranches(t *testing.T, giteaURL *url.URL) {
{
OldRefSubURL: "tag/v1.0.0",
NewBranch: "feature/test4",
- CreateRelease: "v1.0.0",
+ CreateRelease: "v1.0.1",
ExpectedStatus: http.StatusFound,
FlashMessage: i18n.Tr("en", "repo.branch.create_success", "feature/test4"),
},
}
for _, test := range tests {
- defer prepareTestEnv(t)()
session := loginUser(t, "user2")
if test.CreateRelease != "" {
createNewRelease(t, session, "/user2/repo1", test.CreateRelease, test.CreateRelease, false, false)