From 20498ed772ef5791a17248f1198b58265299574e Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 1 Jul 2013 17:27:19 -0400 Subject: [PATCH] sync/atomic: remove test dependency on net/http Depending on net/http means depending on cgo. When the tree is in a shaky state it's nice to see sync/atomic pass even if cgo or net causes broken binaries. R=golang-dev, dave, r CC=golang-dev https://golang.org/cl/10753044 --- src/pkg/sync/example_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pkg/sync/example_test.go b/src/pkg/sync/example_test.go index 031c87f03b..bdd3af6fed 100644 --- a/src/pkg/sync/example_test.go +++ b/src/pkg/sync/example_test.go @@ -6,10 +6,15 @@ package sync_test import ( "fmt" - "net/http" "sync" ) +type httpPkg struct{} + +func (httpPkg) Get(url string) {} + +var http httpPkg + // This example fetches several URLs concurrently, // using a WaitGroup to block until all the fetches are complete. func ExampleWaitGroup() { -- 2.48.1