aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Symonds <dsymonds@golang.org>2011-04-22 16:29:05 -0400
committerRuss Cox <rsc@golang.org>2011-04-22 16:29:05 -0400
commitd911b872ceae5c6d00e519b74db3c6eede5e3b87 (patch)
tree96e71e448256ef370823a545e1a38068a3439e36
parentf589728ff4e7f1855932c01f777f67646ce39e0c (diff)
downloadgo-d911b872ceae5c6d00e519b74db3c6eede5e3b87.tar.gz
go-d911b872ceae5c6d00e519b74db3c6eede5e3b87.zip
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
-rw-r--r--src/pkg/container/heap/heap_test.go3
1 files changed, 2 insertions, 1 deletions
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"
)