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