v4.2.5
This version introduces a mutex version of clock in a build tag called holster_test_mode
. This allows you to pass the build tag when running tests in your project to prevent go from detecting a race condition when using clock.Freeze/Unfreeze
.
ex:
go test -race -p 1 -tags holster_test_mode ./...