We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9b5db3 commit de18e71Copy full SHA for de18e71
1 file changed
internal/requests/requests_test.go
@@ -443,6 +443,21 @@ func TestNewRequestHTTPClient_SetServerName(t *testing.T) {
443
}
444
445
446
+func TestNewRequestHTTPClient_SetServerName_clientError(t *testing.T) {
447
+ t.Run("malformedClient", func(t *testing.T) {
448
+ t.Parallel()
449
+
450
+ noTransportClient := http.Client{}
451
+ c := NewRequestHTTPClient()
452
453
+ c.client = &noTransportClient
454
455
+ _, err := c.SetServerName("localhost")
456
457
+ require.Error(t, err)
458
+ })
459
+}
460
461
func TestNewRequestHTTPClient_SetServerName_Error(t *testing.T) {
462
testsError := []struct {
463
desc string
0 commit comments