You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
josharian
changed the title
testing: -timeout=0 does not disable timeouts
cmd/go: go test -timeout flag behavior doesn't match test binary -timeout flag behavior
Apr 18, 2017
Ick. Looks like this is implemented correctly in package testing, but that this timeout comes from 'go test', so to disable timeouts you need to use 'go test -c' and then execute. It'd be much nicer if test binaries and cmd/go agreed on behavior, and there was a way to disable timeouts directly via 'go test'.
Running a test binary with -h prints:
But that doesn't seem to work:
Running this with
go test -bench=. -timeout=0 x_test.go
results (eventually) in*** Test killed with quit: ran too long (10m0s).
The text was updated successfully, but these errors were encountered: