Ensure tests are running on the correct thread

Summary: This diff re-enables commented code during the AndroidX migration

Reviewed By: PeteTheHeat

Differential Revision: D15758382

fbshipit-source-id: 95106cc2e3faccbd632d773ee58091c7bf8ea063
This commit is contained in:
David Vacca
2019-10-07 18:54:26 -07:00
committed by Facebook Github Bot
parent b5ea49f132
commit 3b51499fc2
2 changed files with 18 additions and 18 deletions
@@ -12,6 +12,7 @@ import android.test.AndroidTestCase;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.Nullable;
import androidx.test.InstrumentationRegistry;
import com.facebook.infer.annotation.Assertions;
import com.facebook.react.bridge.BaseJavaModule;
import com.facebook.react.bridge.CatalystInstance;
@@ -163,9 +164,7 @@ public abstract class ReactIntegrationTestCase extends AndroidTestCase {
}
public void waitForIdleSync() {
return;
// TODO: re-enable after cleanup of android-x migration
// InstrumentationRegistry.getInstrumentation().waitForIdleSync();
InstrumentationRegistry.getInstrumentation().waitForIdleSync();
}
public void waitForBridgeAndUIIdle() {