Fixing possible race condition when passing backoff around as a pointer.

This commit is contained in:
Renan DelValle 2018-03-05 23:23:16 -08:00
parent c0d2969976
commit 7152f568fe
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
3 changed files with 13 additions and 8 deletions

View file

@ -61,7 +61,7 @@ func TestMain(m *testing.M) {
}
func TestNonExistentEndpoint(t *testing.T) {
backoff := &realis.Backoff{ // Reduce penalties for this test to make it quick
backoff := realis.Backoff{ // Reduce penalties for this test to make it quick
Steps: 5,
Duration: 1 * time.Second,
Factor: 1.0,