Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: test case fail for testOnAppForegrounded
Browse files Browse the repository at this point in the history
xiaoweii committed Mar 13, 2024
1 parent c30af32 commit 2f26d47
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -121,6 +121,8 @@ public void testContextIsInValid() {
*/
@Test
public void testOnAppForegrounded() {
lifecycle = new LifecycleRegistry(mock(LifecycleOwner.class));
lifecycleManager.startLifecycleTracking(ApplicationProvider.getApplicationContext(), lifecycle);
when(sessionClient.initialSession()).thenReturn(true);
lifecycle.handleLifecycleEvent(Lifecycle.Event.ON_START);
verify(autoRecordEventClient).updateStartEngageTimestamp();

0 comments on commit 2f26d47

Please sign in to comment.