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

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

View as plain text