summaryrefslogtreecommitdiffstats
path: root/integrations/git_helper_for_declarative_test.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-11-13 21:06:35 +0000
committerGitHub <noreply@github.com>2019-11-13 21:06:35 +0000
commit7b75603ffed7e1bcdde7819e35d86d54d3bfc0ae (patch)
tree312a20892b1d2e9350ad864e6762431149ab321a /integrations/git_helper_for_declarative_test.go
parentb41f303ae0f66f5ba2a19be001037067b7e1ccc7 (diff)
downloadgitea-7b75603ffed7e1bcdde7819e35d86d54d3bfc0ae.tar.gz
gitea-7b75603ffed7e1bcdde7819e35d86d54d3bfc0ae.zip
Fix intermittent GPG Git test failure (#8968)
Diffstat (limited to 'integrations/git_helper_for_declarative_test.go')
-rw-r--r--integrations/git_helper_for_declarative_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/integrations/git_helper_for_declarative_test.go b/integrations/git_helper_for_declarative_test.go
index 294f0bc5fe..5ac3348e77 100644
--- a/integrations/git_helper_for_declarative_test.go
+++ b/integrations/git_helper_for_declarative_test.go
@@ -79,8 +79,10 @@ func allowLFSFilters() []string {
return globalArgs
}
-func onGiteaRun(t *testing.T, callback func(*testing.T, *url.URL)) {
- prepareTestEnv(t, 1)
+func onGiteaRun(t *testing.T, callback func(*testing.T, *url.URL), prepare ...bool) {
+ if len(prepare) == 0 || prepare[0] {
+ prepareTestEnv(t, 1)
+ }
s := http.Server{
Handler: mac,
}