...

Text file src/cmd/go/testdata/script/test_benchmark_timeout.txt

Documentation: cmd/go/testdata/script

     1# Tests issue #18845
     2[short] skip
     3
     4go test -bench . -timeout=750ms timeoutbench_test.go
     5stdout ok
     6stdout PASS
     7
     8-- timeoutbench_test.go --
     9package timeoutbench_test
    10
    11import (
    12	"testing"
    13	"time"
    14)
    15
    16func BenchmarkSleep1s(b *testing.B) {
    17	time.Sleep(1 * time.Second)
    18}

View as plain text