workerpool
workerpool copied to clipboard
some tests are failing with `race`
go test -run . -count=100 -race
panic: test timed out after 10m0s
running tests:
TestWorkerTimeout (2s)
This is not a race error but a test timeout error. The default of 10m appears to be short; you can try to increase the timeout with the -timeout flag.
It works on my machine.
$ time go test -run . -count=100 -race -timeout=30m
PASS
ok github.com/gammazero/workerpool 757.602s
go test -run . -count=100 -race -timeout=30m 2,81s user 1,37s system 0% cpu 12:37,78 total