File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed 
sample-operators/leader-election/src/test/java/io/javaoperatorsdk/operator/sample Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -138,13 +138,15 @@ private void deployOperatorsInOrder(String yamlFilePrefix) {
138138    applyResources ("k8s/"  + yamlFilePrefix  + "operator.yaml" );
139139    await ().atMost (Duration .ofSeconds (POD_STARTUP_TIMEOUT )).untilAsserted (() -> {
140140      var  pod  = client .pods ().inNamespace (namespace ).withName (OPERATOR_1_POD_NAME ).get ();
141+       assertThat (pod .getStatus ().getContainerStatuses ()).isNotEmpty ();
141142      assertThat (pod .getStatus ().getContainerStatuses ().get (0 ).getReady ()).isTrue ();
142143    });
143144
144145    log .info ("Installing 2nd instance" );
145146    applyResources ("k8s/"  + yamlFilePrefix  + "operator-instance-2.yaml" );
146147    await ().atMost (Duration .ofSeconds (POD_STARTUP_TIMEOUT )).untilAsserted (() -> {
147148      var  pod  = client .pods ().inNamespace (namespace ).withName (OPERATOR_2_POD_NAME ).get ();
149+       assertThat (pod .getStatus ().getContainerStatuses ()).isNotEmpty ();
148150      assertThat (pod .getStatus ().getContainerStatuses ().get (0 ).getReady ()).isTrue ();
149151    });
150152  }
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments