// If multiple modules with revisions matching the query provide the requested
// package, QueryPackage picks the one with the longest module path.
//
-// If the path is in the the main module and the query is "latest",
+// If the path is in the main module and the query is "latest",
// QueryPackage returns Target as the version.
func QueryPackage(path, query string, allowed func(module.Version) bool) (module.Version, *modfetch.RevInfo, error) {
if _, ok := dirInModule(path, Target.Path, ModRoot, true); ok {
// Any mutations to the returned pool are not written to disk and do
// not affect any other pool returned by SystemCertPool.
//
-// New changes in the the system cert pool might not be reflected
+// New changes in the system cert pool might not be reflected
// in subsequent calls.
func SystemCertPool() (*CertPool, error) {
if runtime.GOOS == "windows" {
// If they've already configured http2 with
// golang.org/x/net/http2 instead of the bundled copy, try to
- // get at its http2.Transport value (via the the "https"
+ // get at its http2.Transport value (via the "https"
// altproto map) so we can call CloseIdleConnections on it if
// requested. (Issue 22891)
altProto, _ := t.altProto.Load().(map[string]RoundTripper)
}
case <-time.After(timeout * 10):
// If we didn't get into the Handler in 50ms, that probably means
- // the builder was just slow and the the Get failed in that time
+ // the builder was just slow and the Get failed in that time
// but never made it to the server. That's fine. We'll usually
// test the part above on faster machines.
t.Skip("skipping test on slow builder")
// conn is closed so that it's not reused.
//
// This is the test variant that has the server send response headers
-// first, and time out during the the write of the response body.
+// first, and time out during the write of the response body.
func TestClientTimeoutKillsConn_AfterHeaders(t *testing.T) {
setParallel(t)
defer afterTest(t)
}
defer syscall.Close(p[1])
- // Set the the read-side to non-blocking.
+ // Set the read-side to non-blocking.
if !blocking {
if err := syscall.SetNonblock(p[0], true); err != nil {
syscall.Close(p[0])