eclipse-paho / paho.mqtt.golang

Other
2.77k stars 534 forks source link

Resolve race condition and ensure t.Error is not called from goroutine. #606

Closed MattBrittan closed 2 years ago

MattBrittan commented 2 years ago

This test contained a race condition. Also as per the docs "FailNow must be called from the goroutine running the test or benchmark function, not from other goroutines created during the test.".