Test killed with quit: ran too long
Use go test -timeout <duration>
, e.g.:
$ go test -timeout 20m
The default is 10m.
From the docs:
Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
By default, timeout exit after 10 minutes
go test --help
-timeout d
If a test binary runs longer than duration d, panic.
If d is 0, the timeout is disabled.
The default is 10 minutes (10m).