diff options
author | David Symonds <dsymonds@golang.org> | 2011-04-22 16:29:05 -0400 |
---|---|---|
committer | David Symonds <dsymonds@golang.org> | 2011-04-22 16:29:05 -0400 |
commit | 5ea49e11b0a3b88cdf35b388395778393d9c5450 (patch) | |
tree | 8502bf02c83ba845674e85ec3975a697b910a360 /src/pkg/container | |
parent | 5fca34ac75712b803c1cd9d2a419e6d2f925a5f7 (diff) | |
download | go-5ea49e11b0a3b88cdf35b388395778393d9c5450.tar.gz |
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
http://codereview.appspot.com/4395042
Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/pkg/container')
-rw-r--r-- | src/pkg/container/heap/heap_test.go | 3 |
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 89d444dd5..5eb54374a 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" ) |