@@ -143,7 +143,7 @@ func TestAgent(t *testing.T) {
143
143
return fmt .Errorf ("should be reported as degraded; instead its %s" , state )
144
144
}
145
145
return nil
146
- }, ftesting .RetrySleep (100 * time .Millisecond ), ftesting .RetryCount (120 ))
146
+ }, ftesting .RetrySleep (100 * time .Millisecond ), ftesting .RetryCount (180 ))
147
147
148
148
// reconfigure with agent ID set
149
149
agentID := uuid .Must (uuid .NewV4 ()).String ()
@@ -183,7 +183,7 @@ func TestAgent(t *testing.T) {
183
183
return fmt .Errorf ("should be reported as failed; instead its %s" , state )
184
184
}
185
185
return nil
186
- }, ftesting .RetrySleep (100 * time .Millisecond ), ftesting .RetryCount (120 ))
186
+ }, ftesting .RetrySleep (100 * time .Millisecond ), ftesting .RetryCount (180 ))
187
187
188
188
// reconfigure to good config with debug log level
189
189
// the good config in this case is the bootstrap config.
@@ -337,7 +337,7 @@ func TestAgentAPM(t *testing.T) {
337
337
return fmt .Errorf ("should be reported as healthy; instead its %s" , state )
338
338
}
339
339
return nil
340
- }, ftesting .RetrySleep (100 * time .Millisecond ), ftesting .RetryCount (120 ))
340
+ }, ftesting .RetrySleep (100 * time .Millisecond ), ftesting .RetryCount (180 ))
341
341
342
342
// make a request
343
343
cli := cleanhttp .DefaultClient ()
@@ -392,7 +392,7 @@ func TestAgentAPM(t *testing.T) {
392
392
return fmt .Errorf ("should be reported as healthy; instead its %s" , state )
393
393
}
394
394
return nil
395
- }, ftesting .RetrySleep (100 * time .Millisecond ), ftesting .RetryCount (120 ))
395
+ }, ftesting .RetrySleep (100 * time .Millisecond ), ftesting .RetryCount (180 ))
396
396
397
397
callStatus ()
398
398
@@ -417,7 +417,7 @@ func TestAgentAPM(t *testing.T) {
417
417
return fmt .Errorf ("should be reported as stopped; instead its %s" , state )
418
418
}
419
419
return nil
420
- }, ftesting .RetrySleep (100 * time .Millisecond ), ftesting .RetryCount (120 ))
420
+ }, ftesting .RetrySleep (100 * time .Millisecond ), ftesting .RetryCount (180 ))
421
421
422
422
// stop the agent and wait for go routine to exit
423
423
cancel ()
0 commit comments