Try reduce flackiness of VeniceTest

Summary:
Simplify addLifecycleEventListener for the flaky test because we just want to test that listener is working.

Changelog:
[Android][Changed] - Add a spare implementation of addLifecycleEventListener for test purpose.

Reviewed By: PeteTheHeat

Differential Revision: D26749256

fbshipit-source-id: 5af216e6bfa37a15eb189aa24a3df35a7a7112de
This commit is contained in:
Lulu Wu
2021-03-02 16:26:21 -08:00
committed by Facebook GitHub Bot
parent cbe7c445f7
commit be7f057bac
7 changed files with 16 additions and 10 deletions
@@ -158,7 +158,7 @@ public class UIManagerModule extends ReactContextBaseJavaModule
mEventDispatcher,
minTimeLeftInFrameForNonBatchedOperationMs);
reactContext.addLifecycleEventListener(this);
reactContext.addLifecycleEventListenerAndCheckState(this);
}
@Deprecated
@@ -180,7 +180,7 @@ public class UIManagerModule extends ReactContextBaseJavaModule
mEventDispatcher,
minTimeLeftInFrameForNonBatchedOperationMs);
reactContext.addLifecycleEventListener(this);
reactContext.addLifecycleEventListenerAndCheckState(this);
}
/**