@@ -1139,10 +1139,10 @@ func TestRetryer(t *testing.T) {
11391139 name : "object retryer configures retry" ,
11401140 objectOptions : []RetryOption {
11411141 WithPolicy (RetryAlways ),
1142- WithErrorFunc (shouldRetry ),
1142+ WithErrorFunc (ShouldRetry ),
11431143 },
11441144 want : & retryConfig {
1145- shouldRetry : shouldRetry ,
1145+ shouldRetry : ShouldRetry ,
11461146 policy : RetryAlways ,
11471147 },
11481148 },
@@ -1155,15 +1155,15 @@ func TestRetryer(t *testing.T) {
11551155 Multiplier : 6 ,
11561156 }),
11571157 WithPolicy (RetryAlways ),
1158- WithErrorFunc (shouldRetry ),
1158+ WithErrorFunc (ShouldRetry ),
11591159 },
11601160 want : & retryConfig {
11611161 backoff : & gax.Backoff {
11621162 Initial : time .Minute ,
11631163 Max : time .Hour ,
11641164 Multiplier : 6 ,
11651165 },
1166- shouldRetry : shouldRetry ,
1166+ shouldRetry : ShouldRetry ,
11671167 policy : RetryAlways ,
11681168 },
11691169 },
@@ -1176,15 +1176,15 @@ func TestRetryer(t *testing.T) {
11761176 Multiplier : 6 ,
11771177 }),
11781178 WithPolicy (RetryAlways ),
1179- WithErrorFunc (shouldRetry ),
1179+ WithErrorFunc (ShouldRetry ),
11801180 },
11811181 want : & retryConfig {
11821182 backoff : & gax.Backoff {
11831183 Initial : time .Minute ,
11841184 Max : time .Hour ,
11851185 Multiplier : 6 ,
11861186 },
1187- shouldRetry : shouldRetry ,
1187+ shouldRetry : ShouldRetry ,
11881188 policy : RetryAlways ,
11891189 },
11901190 },
@@ -1195,11 +1195,11 @@ func TestRetryer(t *testing.T) {
11951195 },
11961196 objectOptions : []RetryOption {
11971197 WithPolicy (RetryNever ),
1198- WithErrorFunc (shouldRetry ),
1198+ WithErrorFunc (ShouldRetry ),
11991199 },
12001200 want : & retryConfig {
12011201 policy : RetryNever ,
1202- shouldRetry : shouldRetry ,
1202+ shouldRetry : ShouldRetry ,
12031203 },
12041204 },
12051205 {
@@ -1209,11 +1209,11 @@ func TestRetryer(t *testing.T) {
12091209 },
12101210 objectOptions : []RetryOption {
12111211 WithPolicy (RetryNever ),
1212- WithErrorFunc (shouldRetry ),
1212+ WithErrorFunc (ShouldRetry ),
12131213 },
12141214 want : & retryConfig {
12151215 policy : RetryNever ,
1216- shouldRetry : shouldRetry ,
1216+ shouldRetry : ShouldRetry ,
12171217 },
12181218 },
12191219 {
@@ -1231,11 +1231,11 @@ func TestRetryer(t *testing.T) {
12311231 Initial : time .Nanosecond ,
12321232 Max : time .Microsecond ,
12331233 }),
1234- WithErrorFunc (shouldRetry ),
1234+ WithErrorFunc (ShouldRetry ),
12351235 },
12361236 want : & retryConfig {
12371237 policy : RetryAlways ,
1238- shouldRetry : shouldRetry ,
1238+ shouldRetry : ShouldRetry ,
12391239 backoff : & gax.Backoff {
12401240 Initial : time .Nanosecond ,
12411241 Max : time .Microsecond ,
@@ -1268,7 +1268,7 @@ func TestRetryer(t *testing.T) {
12681268 name : "object retryer does not override bucket retryer if option is not set" ,
12691269 bucketOptions : []RetryOption {
12701270 WithPolicy (RetryNever ),
1271- WithErrorFunc (shouldRetry ),
1271+ WithErrorFunc (ShouldRetry ),
12721272 },
12731273 objectOptions : []RetryOption {
12741274 WithBackoff (gax.Backoff {
@@ -1278,7 +1278,7 @@ func TestRetryer(t *testing.T) {
12781278 },
12791279 want : & retryConfig {
12801280 policy : RetryNever ,
1281- shouldRetry : shouldRetry ,
1281+ shouldRetry : ShouldRetry ,
12821282 backoff : & gax.Backoff {
12831283 Initial : time .Nanosecond ,
12841284 Max : time .Second ,
0 commit comments