...

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

Documentation: cmd/go/testdata/script

     1! go test -json -timeout=1ms
     2
     3stdout '"Action":"output","Package":"p","Output":"FAIL\\tp\\t'
     4stdout '"Action":"fail","Package":"p","Elapsed":'
     5
     6-- go.mod --
     7module p
     8
     9-- x_test.go --
    10package p
    11
    12import (
    13	"testing"
    14	"time"
    15)
    16
    17func Test(t *testing.T) {
    18	time.Sleep(1*time.Hour)
    19}

View as plain text