Stabilize coverage (#4070)

Stabilize coverage
This commit is contained in:
Tobias Kaminsky 2019-05-27 11:59:18 +02:00 committed by GitHub
commit 035342895f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,6 +23,7 @@ public class FileDisplayActivityTest extends AbstractIT {
@Test
public void testSetupToolbar() {
try (ActivityScenario<FileDisplayActivity> scenario = ActivityScenario.launch(FileDisplayActivity.class)) {
InstrumentationRegistry.getInstrumentation().waitForIdleSync();
InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> {
Activity activity =
ActivityLifecycleMonitorRegistry.getInstance().getActivitiesInStage(RESUMED).iterator().next();