increased test client timeout

This commit is contained in:
W Anders
2024-05-06 17:53:30 -06:00
parent 12bcac933a
commit d9d798d1f1
+2 -1
View File
@@ -6,6 +6,7 @@ import (
"net/http" "net/http"
"net/url" "net/url"
"testing" "testing"
"time"
"github.com/coredns/coredns/plugin/pkg/dnstest" "github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test" "github.com/coredns/coredns/plugin/test"
@@ -44,7 +45,7 @@ var netboxdnsPlugin NetboxDNS = NetboxDNS{
zones: []string{"."}, zones: []string{"."},
requestClient: &netbox.APIRequestClient{ requestClient: &netbox.APIRequestClient{
Client: &http.Client{ Client: &http.Client{
Timeout: defaultHTTPClientTimeout, Timeout: time.Second * 30,
}, },
NetboxURL: &url.URL{ NetboxURL: &url.URL{
Scheme: "http", Scheme: "http",