File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
shell/platform/android/test/io/flutter Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 88import static org .junit .Assert .assertNotNull ;
99import static org .junit .Assert .assertNull ;
1010import static org .junit .Assert .assertThrows ;
11+ import static org .junit .Assert .assertTrue ;
1112
1213import androidx .test .ext .junit .runners .AndroidJUnit4 ;
1314import io .flutter .embedding .engine .deferredcomponents .PlayStoreDeferredComponentManager ;
@@ -73,8 +74,9 @@ public void executorCreatesAndNamesNewThreadsByDefault()
7374 threadNames = injector .executorService ().invokeAll (callables );
7475
7576 assertEquals (threadNames .size (), 2 );
76- assertEquals (threadNames .get (0 ).get (), "flutter-worker-0" );
77- assertEquals (threadNames .get (1 ).get (), "flutter-worker-1" );
77+ for (Future <String > name : threadNames ) {
78+ assertTrue (name .get ().startsWith ("flutter-worker-" ));
79+ }
7880 }
7981
8082 @ Test
You can’t perform that action at this time.
0 commit comments