From 6ca1c8858586ccf198a6ffa66cd2033812bb5f8f Mon Sep 17 00:00:00 2001 From: Unpublished Date: Mon, 27 May 2019 11:10:53 +0200 Subject: [PATCH] Stabilize coverage Signed-off-by: Unpublished --- .../owncloud/android/ui/activity/FileDisplayActivityTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/androidTest/java/com/owncloud/android/ui/activity/FileDisplayActivityTest.java b/src/androidTest/java/com/owncloud/android/ui/activity/FileDisplayActivityTest.java index 0131c8f83e..e024a04ab3 100644 --- a/src/androidTest/java/com/owncloud/android/ui/activity/FileDisplayActivityTest.java +++ b/src/androidTest/java/com/owncloud/android/ui/activity/FileDisplayActivityTest.java @@ -23,6 +23,7 @@ public class FileDisplayActivityTest extends AbstractIT { @Test public void testSetupToolbar() { try (ActivityScenario scenario = ActivityScenario.launch(FileDisplayActivity.class)) { + InstrumentationRegistry.getInstrumentation().waitForIdleSync(); InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { Activity activity = ActivityLifecycleMonitorRegistry.getInstance().getActivitiesInStage(RESUMED).iterator().next();