1
0
mirror of https://github.com/golang/go synced 2024-11-18 10:54:40 -07:00

runtime: minor test cleanup

R=golang-dev, khr, rsc
CC=golang-dev
https://golang.org/cl/11280043
This commit is contained in:
Dmitriy Vyukov 2013-07-16 01:02:42 +04:00
parent 3d236aed9a
commit 0a86b4dab8

View File

@ -227,7 +227,7 @@ func TestPreemptSplitBig(t *testing.T) {
stop := make(chan int)
go big(stop)
for i := 0; i < 3; i++ {
time.Sleep(1 * time.Microsecond) // let big start running
time.Sleep(10 * time.Microsecond) // let big start running
runtime.GC()
}
close(stop)
@ -237,7 +237,7 @@ func big(stop chan int) int {
n := 0
for {
// delay so that gc is sure to have asked for a preemption
for i := int64(0); i < 1e9; i++ {
for i := 0; i < 1e9; i++ {
n++
}
@ -286,9 +286,6 @@ func nonleaf(stop chan int) bool {
}
}
func poll() {
}
func TestSchedLocalQueue(t *testing.T) {
runtime.TestSchedLocalQueue1()
}