This repository was archived by the owner on Feb 25, 2025. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed 
shell/platform/android/test/io/flutter/embedding/engine/renderer 
testing/scenario_app/android/app/src/main/java/dev/flutter/scenarios Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 2727import  io .flutter .embedding .engine .FlutterJNI ;
2828import  io .flutter .view .TextureRegistry ;
2929import  java .util .concurrent .CountDownLatch ;
30- import  java .util .concurrent .TimeUnit ;
3130import  java .util .concurrent .atomic .AtomicInteger ;
3231import  org .junit .Before ;
3332import  org .junit .Test ;
@@ -263,8 +262,8 @@ public void run() {
263262            });
264263    fakeFinalizer .start ();
265264    try  {
266-       latch .await (5L ,  TimeUnit . SECONDS );
267-     } catch  (Throwable  e ) {
265+       latch .await ();
266+     } catch  (InterruptedException  e ) {
268267      // do nothing 
269268    }
270269  }
Original file line number Diff line number Diff line change @@ -94,9 +94,7 @@ public void waitUntilFlutterRendered() {
9494    super .waitUntilFlutterRendered ();
9595
9696    try  {
97-       if  (!firstFrameLatch .await (10 , java .util .concurrent .TimeUnit .SECONDS )) {
98-         throw  new  RuntimeException ("Timeout waiting for firstFrameLatch to signal" );
99-       }
97+       firstFrameLatch .await ();
10098    } catch  (InterruptedException  e ) {
10199      throw  new  RuntimeException (e );
102100    }
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments