Skip to content

Commit b1c3e7c

Browse files
more relaxed retries (#4567)
1 parent 11d7418 commit b1c3e7c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

internal/pkg/server/agent_integration_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func TestAgent(t *testing.T) {
143143
return fmt.Errorf("should be reported as degraded; instead its %s", state)
144144
}
145145
return nil
146-
}, ftesting.RetrySleep(100*time.Millisecond), ftesting.RetryCount(120))
146+
}, ftesting.RetrySleep(100*time.Millisecond), ftesting.RetryCount(180))
147147

148148
// reconfigure with agent ID set
149149
agentID := uuid.Must(uuid.NewV4()).String()
@@ -183,7 +183,7 @@ func TestAgent(t *testing.T) {
183183
return fmt.Errorf("should be reported as failed; instead its %s", state)
184184
}
185185
return nil
186-
}, ftesting.RetrySleep(100*time.Millisecond), ftesting.RetryCount(120))
186+
}, ftesting.RetrySleep(100*time.Millisecond), ftesting.RetryCount(180))
187187

188188
// reconfigure to good config with debug log level
189189
// the good config in this case is the bootstrap config.
@@ -337,7 +337,7 @@ func TestAgentAPM(t *testing.T) {
337337
return fmt.Errorf("should be reported as healthy; instead its %s", state)
338338
}
339339
return nil
340-
}, ftesting.RetrySleep(100*time.Millisecond), ftesting.RetryCount(120))
340+
}, ftesting.RetrySleep(100*time.Millisecond), ftesting.RetryCount(180))
341341

342342
// make a request
343343
cli := cleanhttp.DefaultClient()
@@ -392,7 +392,7 @@ func TestAgentAPM(t *testing.T) {
392392
return fmt.Errorf("should be reported as healthy; instead its %s", state)
393393
}
394394
return nil
395-
}, ftesting.RetrySleep(100*time.Millisecond), ftesting.RetryCount(120))
395+
}, ftesting.RetrySleep(100*time.Millisecond), ftesting.RetryCount(180))
396396

397397
callStatus()
398398

@@ -417,7 +417,7 @@ func TestAgentAPM(t *testing.T) {
417417
return fmt.Errorf("should be reported as stopped; instead its %s", state)
418418
}
419419
return nil
420-
}, ftesting.RetrySleep(100*time.Millisecond), ftesting.RetryCount(120))
420+
}, ftesting.RetrySleep(100*time.Millisecond), ftesting.RetryCount(180))
421421

422422
// stop the agent and wait for go routine to exit
423423
cancel()

0 commit comments

Comments
 (0)