make it conf via arg or env

This commit is contained in:
6543 2022-07-24 17:52:07 +02:00
parent aa83b307db
commit b1b23ce2ec
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE
5 changed files with 17 additions and 5 deletions

View file

@ -13,7 +13,7 @@ import (
func TestHandlerPerformance(t *testing.T) {
giteaRoot := "https://codeberg.org"
giteaClient, _ := gitea.NewClient(giteaRoot, "")
giteaClient, _ := gitea.NewClient(giteaRoot, "", false, false)
testHandler := Handler(
[]byte("codeberg.page"), []byte("raw.codeberg.org"),
giteaClient,