mirror of
https://github.com/golang/go
synced 2024-11-12 04:50:21 -07:00
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
This commit is contained in:
parent
f589728ff4
commit
d911b872ce
@ -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"
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user