We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 255dc6e commit 5e29bcfCopy full SHA for 5e29bcf
basic_test.go
@@ -79,7 +79,6 @@ func TestBasicAuthContext(t *testing.T) {
79
fmt.Fprint(w, authInfo.Username)
80
}))
81
defer ts.Close()
82
- client := ts.Client()
83
for _, tt := range []struct {
84
username, password string
85
want int
@@ -92,7 +91,7 @@ func TestBasicAuthContext(t *testing.T) {
92
91
t.Fatal(err)
93
}
94
r.SetBasicAuth(tt.username, tt.password)
95
- resp, err := client.Do(r)
+ resp, err := http.DefaultClient.Do(r)
96
if err != nil {
97
t.Fatalf("HTTP request failed: %v", err)
98
0 commit comments