I was trying to run the tests in libhoney-go, and the TestHoneycombTransmissionFlush test never terminates for me (unless killed by a timeout). But if you run it under the race detector (-race) it works just fine.
Dean said "race detector slows everything down. if there's a race where something being fast makes it deadlock…"
Versions
Go: 1.17.2
Libhoney: 1.15.6
Steps to reproduce
run go test -timeout 30s -count=1 ./... -- it will generate a stack trace after 30 sec
run go test -timeout 30s -count=1 -race ./...
Additional context
I'm going to look at adding some sleeps to the test to see if it is in fact a deadlock.
I was trying to run the tests in libhoney-go, and the TestHoneycombTransmissionFlush test never terminates for me (unless killed by a timeout). But if you run it under the race detector (-race) it works just fine.
Dean said "race detector slows everything down. if there's a race where something being fast makes it deadlock…" Versions
Steps to reproduce
go test -timeout 30s -count=1 ./...
-- it will generate a stack trace after 30 secgo test -timeout 30s -count=1 -race ./...
Additional context I'm going to look at adding some sleeps to the test to see if it is in fact a deadlock.