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 return globalArgs
} }
func onGiteaRun(t *testing.T, callback func(*testing.T, *url.URL)) { func onGiteaRun(t *testing.T, callback func(*testing.T, *url.URL), prepare ...bool) {
prepareTestEnv(t, 1) if len(prepare) == 0 || prepare[0] {
prepareTestEnv(t, 1)
}
s := http.Server{ s := http.Server{
Handler: mac, Handler: mac,
} }

File diff suppressed because it is too large Load Diff