workerpool icon indicating copy to clipboard operation
workerpool copied to clipboard

some tests are failing with `race`

Open plandem opened this issue 11 months ago • 1 comments

go test -run . -count=100 -race
panic: test timed out after 10m0s
        running tests:
                TestWorkerTimeout (2s)

plandem avatar Jan 24 '25 00:01 plandem

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

lvjp avatar Oct 04 '25 10:10 lvjp