Note that calls with a positive delta that occur when the counter is zero must happen before a Wait. Calls with a negative delta, or calls with a positive delta that start when the counter is greater than zero, may happen at any time.
This is the script I use to test my packages.
https://dave.cheney.net/2013/06/19/stress-test-your-go-packages