aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/test_benchmark_timeout.txt
blob: 4bae7e7e7d0153337e106c7cd7a38372550943d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Tests issue #18845
[short] skip

go test -bench . -timeout=750ms timeoutbench_test.go
stdout ok
stdout PASS

-- timeoutbench_test.go --
package timeoutbench_test

import (
	"testing"
	"time"
)

func BenchmarkSleep1s(b *testing.B) {
	time.Sleep(1 * time.Second)
}