mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
Stabilize coverage
Signed-off-by: Unpublished <unpublished@gmx.net>
This commit is contained in:
parent
a891c848d2
commit
6ca1c88585
1 changed files with 1 additions and 0 deletions
|
@ -23,6 +23,7 @@ public class FileDisplayActivityTest extends AbstractIT {
|
||||||
@Test
|
@Test
|
||||||
public void testSetupToolbar() {
|
public void testSetupToolbar() {
|
||||||
try (ActivityScenario<FileDisplayActivity> scenario = ActivityScenario.launch(FileDisplayActivity.class)) {
|
try (ActivityScenario<FileDisplayActivity> scenario = ActivityScenario.launch(FileDisplayActivity.class)) {
|
||||||
|
InstrumentationRegistry.getInstrumentation().waitForIdleSync();
|
||||||
InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> {
|
InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> {
|
||||||
Activity activity =
|
Activity activity =
|
||||||
ActivityLifecycleMonitorRegistry.getInstance().getActivitiesInStage(RESUMED).iterator().next();
|
ActivityLifecycleMonitorRegistry.getInstance().getActivitiesInStage(RESUMED).iterator().next();
|
||||||
|
|
Loading…
Reference in a new issue