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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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,
}