From: Russ Cox Date: Mon, 1 Jul 2013 21:27:19 +0000 (-0400) Subject: sync/atomic: remove test dependency on net/http X-Git-Tag: go1.2rc2~1133 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=20498ed772ef5791a17248f1198b58265299574e;p=gostls13.git 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 --- 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() {