1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-06 02:27:20 +00:00

Fix intermittent GPG Git test failure (#8968)

This commit is contained in:
zeripath
2019-11-13 21:06:35 +00:00
committed by GitHub
parent b41f303ae0
commit 7b75603ffe
2 changed files with 209 additions and 126 deletions

View File

@ -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,
}