]> Cypherpunks repositories - gostls13.git/commit
container/heap: fix circular dependency in test
authorDavid Symonds <dsymonds@golang.org>
Fri, 22 Apr 2011 20:29:05 +0000 (16:29 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 22 Apr 2011 20:29:05 +0000 (16:29 -0400)
commitd911b872ceae5c6d00e519b74db3c6eede5e3b87
tree96e71e448256ef370823a545e1a38068a3439e36
parentf589728ff4e7f1855932c01f777f67646ce39e0c
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
src/pkg/container/heap/heap_test.go