@@ -38,14 +38,14 @@ func TestClient_RetryBehavior(t *testing.T) {
3838 ClientTimeout : 10 * time .Second ,
3939 RetryRudderErrors : struct {
4040 Enabled bool
41- MaxRetry int
41+ MaxTries int
4242 InitialInterval time.Duration
4343 MaxInterval time.Duration
4444 MaxElapsedTime time.Duration
4545 Multiplier float64
4646 }{
4747 Enabled : true ,
48- MaxRetry : - 1 , // Unlimited retries
48+ MaxTries : 0 , // Unlimited retries
4949 InitialInterval : 50 * time .Millisecond ,
5050 MaxInterval : 200 * time .Millisecond ,
5151 MaxElapsedTime : 5 * time .Second ,
@@ -86,14 +86,14 @@ func TestClient_RetryBehavior(t *testing.T) {
8686 ClientTimeout : 10 * time .Second ,
8787 RetryRudderErrors : struct {
8888 Enabled bool
89- MaxRetry int
89+ MaxTries int
9090 InitialInterval time.Duration
9191 MaxInterval time.Duration
9292 MaxElapsedTime time.Duration
9393 Multiplier float64
9494 }{
9595 Enabled : true ,
96- MaxRetry : - 1 , // Unlimited retries
96+ MaxTries : 0 , // Unlimited retries
9797 InitialInterval : 50 * time .Millisecond ,
9898 MaxInterval : 200 * time .Millisecond ,
9999 MaxElapsedTime : 1 * time .Second , // Short elapsed time to test timeout
@@ -144,14 +144,14 @@ func TestClient_RetryBehavior(t *testing.T) {
144144 ClientTimeout : 10 * time .Second ,
145145 RetryRudderErrors : struct {
146146 Enabled bool
147- MaxRetry int
147+ MaxTries int
148148 InitialInterval time.Duration
149149 MaxInterval time.Duration
150150 MaxElapsedTime time.Duration
151151 Multiplier float64
152152 }{
153153 Enabled : true ,
154- MaxRetry : - 1 , // Unlimited retries
154+ MaxTries : 0 , // Unlimited retries
155155 InitialInterval : 50 * time .Millisecond ,
156156 MaxInterval : 200 * time .Millisecond ,
157157 MaxElapsedTime : 5 * time .Second ,
@@ -201,14 +201,14 @@ func TestClient_RetryBehavior(t *testing.T) {
201201 ClientTimeout : 10 * time .Second ,
202202 RetryRudderErrors : struct {
203203 Enabled bool
204- MaxRetry int
204+ MaxTries int
205205 InitialInterval time.Duration
206206 MaxInterval time.Duration
207207 MaxElapsedTime time.Duration
208208 Multiplier float64
209209 }{
210210 Enabled : true ,
211- MaxRetry : - 1 , // Unlimited retries
211+ MaxTries : 0 , // Unlimited retries
212212 InitialInterval : 50 * time .Millisecond ,
213213 MaxInterval : 200 * time .Millisecond ,
214214 MaxElapsedTime : 5 * time .Second ,
@@ -247,14 +247,14 @@ func TestClient_RetryBehavior(t *testing.T) {
247247 ClientTimeout : 10 * time .Second ,
248248 RetryRudderErrors : struct {
249249 Enabled bool
250- MaxRetry int
250+ MaxTries int
251251 InitialInterval time.Duration
252252 MaxInterval time.Duration
253253 MaxElapsedTime time.Duration
254254 Multiplier float64
255255 }{
256256 Enabled : true ,
257- MaxRetry : - 1 , // Unlimited retries
257+ MaxTries : 0 , // Unlimited retries
258258 InitialInterval : 50 * time .Millisecond ,
259259 MaxInterval : 200 * time .Millisecond ,
260260 MaxElapsedTime : 5 * time .Second ,
@@ -289,14 +289,14 @@ func TestClient_ErrorsNotRetried(t *testing.T) {
289289 ClientTimeout : 1 * time .Second ,
290290 RetryRudderErrors : struct {
291291 Enabled bool
292- MaxRetry int
292+ MaxTries int
293293 InitialInterval time.Duration
294294 MaxInterval time.Duration
295295 MaxElapsedTime time.Duration
296296 Multiplier float64
297297 }{
298298 Enabled : true ,
299- MaxRetry : 0 , // No retries
299+ MaxTries : 1 , // No retries
300300 InitialInterval : 10 * time .Millisecond ,
301301 MaxInterval : 50 * time .Millisecond ,
302302 MaxElapsedTime : 500 * time .Millisecond ,
@@ -330,14 +330,14 @@ func TestClient_ErrorsNotRetried(t *testing.T) {
330330 ClientTimeout : 1 * time .Second ,
331331 RetryRudderErrors : struct {
332332 Enabled bool
333- MaxRetry int
333+ MaxTries int
334334 InitialInterval time.Duration
335335 MaxInterval time.Duration
336336 MaxElapsedTime time.Duration
337337 Multiplier float64
338338 }{
339339 Enabled : true ,
340- MaxRetry : 0 , // No retries
340+ MaxTries : 1 , // No retries
341341 InitialInterval : 10 * time .Millisecond ,
342342 MaxInterval : 50 * time .Millisecond ,
343343 MaxElapsedTime : 500 * time .Millisecond ,
@@ -379,14 +379,14 @@ func TestClient_ConfigurableRetrySettings(t *testing.T) {
379379 ClientTimeout : 10 * time .Second ,
380380 RetryRudderErrors : struct {
381381 Enabled bool
382- MaxRetry int
382+ MaxTries int
383383 InitialInterval time.Duration
384384 MaxInterval time.Duration
385385 MaxElapsedTime time.Duration
386386 Multiplier float64
387387 }{
388388 Enabled : true ,
389- MaxRetry : 1 , // Only 1 retry
389+ MaxTries : 2 , // Only 1 retry
390390 InitialInterval : 10 * time .Millisecond ,
391391 MaxInterval : 50 * time .Millisecond ,
392392 MaxElapsedTime : 500 * time .Millisecond ,
@@ -426,14 +426,14 @@ func TestClient_ConfigurableRetrySettings(t *testing.T) {
426426 ClientTimeout : 10 * time .Second ,
427427 RetryRudderErrors : struct {
428428 Enabled bool
429- MaxRetry int
429+ MaxTries int
430430 InitialInterval time.Duration
431431 MaxInterval time.Duration
432432 MaxElapsedTime time.Duration
433433 Multiplier float64
434434 }{
435435 Enabled : true ,
436- MaxRetry : - 1 , // Allow unlimited retries but limit by time
436+ MaxTries : 0 , // Allow unlimited retries but limit by time
437437 InitialInterval : 100 * time .Millisecond ,
438438 MaxInterval : 200 * time .Millisecond ,
439439 MaxElapsedTime : 1 * time .Millisecond , // Very short time to prevent retries
@@ -473,7 +473,7 @@ func TestClient_RetryDisabled(t *testing.T) {
473473 ClientTimeout : 10 * time .Second ,
474474 RetryRudderErrors : struct {
475475 Enabled bool
476- MaxRetry int
476+ MaxTries int
477477 InitialInterval time.Duration
478478 MaxInterval time.Duration
479479 MaxElapsedTime time.Duration
0 commit comments