Skip to content

Commit a7a5657

Browse files
authored
Update exponential_backoff_test.go
1 parent e59bef6 commit a7a5657

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

addon/retry/exponential_backoff_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ func Test_ExponentialBackoff_Next(t *testing.T) {
122122
}
123123

124124
func Test_ExponentialBackoff_NextRandFailure(t *testing.T) {
125-
// Backup original reader and restore at the end
126-
original := rand.Reader
127-
defer func() { rand.Reader = original }()
128-
rand.Reader = failingReader{}
125+
// Backup original reader and restore at the end
126+
original := rand.Reader
127+
defer func() { rand.Reader = original }()
128+
rand.Reader = failingReader{}
129129

130130
expBackoff := &ExponentialBackoff{
131131
InitialInterval: 1 * time.Second,

0 commit comments

Comments
 (0)