Initialize ReactChoreographer before creating the TimingModule

Reviewed By: mdvacca

Differential Revision: D7185838

fbshipit-source-id: f775f5668ccff3b311c95a0bdd37a420ec64b7d4
This commit is contained in:
Andrew Chen (Eng) 2018-03-07 18:34:53 -08:00 committed by Facebook Github Bot
parent a162dc8cc6
commit 596bcb6d84
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@
package com.facebook.react.testing; package com.facebook.react.testing;
import com.facebook.react.modules.core.ReactChoreographer;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import java.util.concurrent.CountDownLatch; import java.util.concurrent.CountDownLatch;
@ -139,6 +140,7 @@ public abstract class ReactIntegrationTestCase extends AndroidTestCase {
new Runnable() { new Runnable() {
@Override @Override
public void run() { public void run() {
ReactChoreographer.initialize();
Timing timing = new Timing(getContext(), mock(DevSupportManager.class)); Timing timing = new Timing(getContext(), mock(DevSupportManager.class));
simpleSettableFuture.set(timing); simpleSettableFuture.set(timing);
} }