Fixing possible race condition when passing backoff around as a pointer.
This commit is contained in:
parent
c0d2969976
commit
7152f568fe
3 changed files with 13 additions and 8 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue