File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed 
aws-xray/src/test/java/io/opentelemetry/contrib/awsxray Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -170,8 +170,15 @@ void defaultInitialSampler() {
170170
171171  @ Test 
172172  void  parentBasedXraySamplerAfterDefaultSampler () {
173-     try  (AwsXrayRemoteSampler  sampler  = AwsXrayRemoteSampler .newBuilder (Resource .empty ()).build ()) {
173+     rulesResponse .set (RULE_RESPONSE_1 );
174+     try  (AwsXrayRemoteSampler  samplerWithLongerPollingInterval  =
175+         AwsXrayRemoteSampler .newBuilder (Resource .empty ())
176+             .setInitialSampler (Sampler .alwaysOn ())
177+             .setEndpoint (server .httpUri ().toString ())
178+             .setPollingInterval (Duration .ofMillis (5 ))
179+             .build ()) {
174180      await ()
181+           .pollDelay (Duration .ofMillis (10 ))
175182          .untilAsserted (
176183              () -> {
177184                assertThat (sampler .getDescription ())
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments