diff --git a/realm/realm-library/src/syncIntegrationTest/java/io/realm/SyncedRealmTests.java b/realm/realm-library/src/syncIntegrationTest/java/io/realm/SyncedRealmTests.java index ba321beb9f..9a7df11c2e 100644 --- a/realm/realm-library/src/syncIntegrationTest/java/io/realm/SyncedRealmTests.java +++ b/realm/realm-library/src/syncIntegrationTest/java/io/realm/SyncedRealmTests.java @@ -155,7 +155,6 @@ public void run() { // needed to correctly test all error paths. @Test @RunTestInLooperThread - @Ignore("See https://github.com/realm/realm-java/issues/5373") public void waitForInitialData_resilientInCaseOfRetriesAsync() { SyncCredentials credentials = SyncCredentials.usernamePassword(UUID.randomUUID().toString(), "password", true); SyncUser user = SyncUser.login(credentials, Constants.AUTH_URL); @@ -179,6 +178,7 @@ public void onError(Throwable exception) { SystemClock.sleep(randomizer.nextInt(5)); task.cancel(); } + TestHelper.waitRealmThreadExecutorFinish(); looperThread.testComplete(); }