mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook Github Bot
parent
b5ea49f132
commit
3b51499fc2
+2
-3
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user