diff options
Diffstat (limited to 'integrations/git_helper_for_declarative_test.go')
-rw-r--r-- | integrations/git_helper_for_declarative_test.go | 6 |
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, } |