refactor: Clean up code and improve test coverage

This commit is contained in:
TwiN committed 2023-09-28 18:35:18 -04:00
1 parent c7af44bcb0
commit 0402bdb774
6 files changed
+25 -12

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ func TestConfig_getHTTPClient(t *testing.T) {
if !(insecureClient.Transport).(*http.Transport).TLSClientConfig.InsecureSkipVerify {
t.Error("expected Config.Insecure set to true to cause the HTTP client to skip certificate verification")
}
if insecureClient.Timeout != defaultHTTPTimeout {
if insecureClient.Timeout != defaultTimeout {
t.Error("expected Config.Timeout to default the HTTP client to a timeout of 10s")
}
request, _ := http.NewRequest("GET", "", nil)