Initialize ReactChoreographer before creating the TimingModule
Reviewed By: mdvacca Differential Revision: D7185838 fbshipit-source-id: f775f5668ccff3b311c95a0bdd37a420ec64b7d4
This commit is contained in:
parent
a162dc8cc6
commit
596bcb6d84
|
@ -7,6 +7,7 @@
|
|||
|
||||
package com.facebook.react.testing;
|
||||
|
||||
import com.facebook.react.modules.core.ReactChoreographer;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
|
@ -139,6 +140,7 @@ public abstract class ReactIntegrationTestCase extends AndroidTestCase {
|
|||
new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
ReactChoreographer.initialize();
|
||||
Timing timing = new Timing(getContext(), mock(DevSupportManager.class));
|
||||
simpleSettableFuture.set(timing);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue