aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/internal/modfetch/coderepo_test.go
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2019-03-12 15:43:16 -0400
committerBryan C. Mills <bcmills@google.com>2019-03-13 14:37:02 +0000
commitbd680d94a030962efbdb20a51eb19e50ba286e56 (patch)
tree49614ee778b67d2ce075a83b9f1feb964e7d8683 /src/cmd/go/internal/modfetch/coderepo_test.go
parent2f02daaa46b2648f464d7c39ff4a1c5ee43631d5 (diff)
downloadgo-bd680d94a030962efbdb20a51eb19e50ba286e56.tar.gz
go-bd680d94a030962efbdb20a51eb19e50ba286e56.zip
cmd/go/internal/{modconv,modfetch,modload}: set modfetch proxy URL in tests
Fixes #30571 Change-Id: Id4c74e83ee58a080d1c2894ae5ebdbf4aeb1ce42 Reviewed-on: https://go-review.googlesource.com/c/go/+/167084 Run-TryBot: Bryan C. Mills <bcmills@google.com> Reviewed-by: Jay Conrod <jayconrod@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/go/internal/modfetch/coderepo_test.go')
-rw-r--r--src/cmd/go/internal/modfetch/coderepo_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/go/internal/modfetch/coderepo_test.go b/src/cmd/go/internal/modfetch/coderepo_test.go
index 7a419576ce..2c756c50f2 100644
--- a/src/cmd/go/internal/modfetch/coderepo_test.go
+++ b/src/cmd/go/internal/modfetch/coderepo_test.go
@@ -24,6 +24,8 @@ func TestMain(m *testing.M) {
}
func testMain(m *testing.M) int {
+ SetProxy("direct")
+
dir, err := ioutil.TempDir("", "gitrepo-test-")
if err != nil {
log.Fatal(err)