From 271ab63dfa7d4f54fb8fbfd59906546112ef01fc Mon Sep 17 00:00:00 2001 From: zeripath Date: Sun, 8 Nov 2020 21:24:54 +0000 Subject: Make TestCreateBranch and TestRepoCommitsSearch less noisy (#13471) Signed-off-by: Andrew Thornton Co-authored-by: techknowlogick --- integrations/repo_branch_test.go | 3 +-- integrations/repo_commits_search_test.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'integrations') 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) diff --git a/integrations/repo_commits_search_test.go b/integrations/repo_commits_search_test.go index 3cd548e810..0dc0588297 100644 --- a/integrations/repo_commits_search_test.go +++ b/integrations/repo_commits_search_test.go @@ -14,8 +14,6 @@ import ( ) func testRepoCommitsSearch(t *testing.T, query, commit string) { - defer prepareTestEnv(t)() - session := loginUser(t, "user2") // Request repository commits page @@ -28,6 +26,7 @@ func testRepoCommitsSearch(t *testing.T, query, commit string) { } func TestRepoCommitsSearch(t *testing.T) { + defer prepareTestEnv(t)() testRepoCommitsSearch(t, "e8eabd", "") testRepoCommitsSearch(t, "38a9cb", "") testRepoCommitsSearch(t, "6e8e", "6e8eabd9a7") -- cgit v1.2.3