increased test client timeout
This commit is contained in:
+2
-1
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user