From: David Symonds Date: Fri, 22 Apr 2011 20:29:05 +0000 (-0400) Subject: container/heap: fix circular dependency in test X-Git-Tag: weekly.2011-04-27~59 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d911b872ceae5c6d00e519b74db3c6eede5e3b87;p=gostls13.git container/heap: fix circular dependency in test Having the test be in the container/heap package yields a cycle container/heap (for the test) -> testing -> time -> container/heap (for timerHeap) Occasionally the linker would get mixed up, resulting in a test panic in a very weird place. R=rsc, r2 CC=golang-dev https://golang.org/cl/4395042 --- diff --git a/src/pkg/container/heap/heap_test.go b/src/pkg/container/heap/heap_test.go index 89d444dd54..5eb54374ab 100644 --- a/src/pkg/container/heap/heap_test.go +++ b/src/pkg/container/heap/heap_test.go @@ -2,11 +2,12 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package heap +package heap_test import ( "testing" "container/vector" + . "container/heap" )