diff options
| author | Oleksandr Redko <oleksandr.red+github@gmail.com> | 2023-05-18 11:12:23 +0300 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-05-24 18:48:34 +0000 |
| commit | 5de20f0f34a7bf08bec8af82befc24e3c0ea5d7e (patch) | |
| tree | 3e70ba0e2ad1db3c49867ab66b8ec529a725f6b4 /src/net/http/transport_test.go | |
| parent | 72bf8acee9a9bd913911d094fc636d2f0f3c446d (diff) | |
| download | go-5de20f0f34a7bf08bec8af82befc24e3c0ea5d7e.tar.xz | |
net/http: fix spelling issues in comments and tests
Change-Id: I1b90619fd073a0c41188278a50ed149b763f0fa8
Reviewed-on: https://go-review.googlesource.com/c/go/+/496135
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/net/http/transport_test.go')
| -rw-r--r-- | src/net/http/transport_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/http/transport_test.go b/src/net/http/transport_test.go index fdbc5daa8d..172aba679b 100644 --- a/src/net/http/transport_test.go +++ b/src/net/http/transport_test.go @@ -251,7 +251,7 @@ func testTransportConnectionCloseOnResponse(t *testing.T, mode testMode) { // an underlying TCP connection after making an http.Request with Request.Close set. // // It tests the behavior by making an HTTP request to a server which -// describes the source source connection it got (remote port number + +// describes the source connection it got (remote port number + // address of its net.Conn). func TestTransportConnectionCloseOnRequest(t *testing.T) { run(t, testTransportConnectionCloseOnRequest, []testMode{http1Mode}) @@ -2368,7 +2368,7 @@ func testTransportResponseHeaderTimeout(t *testing.T, mode testMode) { if !tt.wantTimeout { if !retry { // The timeout may be set too short. Retry with a longer one. - t.Logf("unexpected timout for path %q after %v; retrying with longer timeout", tt.path, timeout) + t.Logf("unexpected timeout for path %q after %v; retrying with longer timeout", tt.path, timeout) timeout *= 2 retry = true } @@ -5648,7 +5648,7 @@ func testClientTimeoutKillsConn_BeforeHeaders(t *testing.T, mode testMode) { _, err := cst.c.Get(cst.ts.URL) if err == nil { close(cancelHandler) - t.Fatal("unexpected Get succeess") + t.Fatal("unexpected Get success") } tooSlow := time.NewTimer(timeout * 10) @@ -5656,8 +5656,8 @@ func testClientTimeoutKillsConn_BeforeHeaders(t *testing.T, mode testMode) { case <-tooSlow.C: // If we didn't get into the Handler, that probably means the builder was // just slow and the Get failed in that time but never made it to the - // server. That's fine; we'll try again with a longer timout. - t.Logf("no handler seen in %v; retrying with longer timout", timeout) + // server. That's fine; we'll try again with a longer timeout. + t.Logf("no handler seen in %v; retrying with longer timeout", timeout) close(cancelHandler) cst.close() timeout *= 2 |
