Skip to content

Commit 6a1731f

Browse files
committed
Fix broken tests
Change-Id: Icfc4e7adf5d08904ea707a98afb97108a2dcd8b9
1 parent 4924579 commit 6a1731f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

auth/src/test/java/com/firebase/ui/auth/ui/ChooseAccountActivityTest.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ public void testAutoSignInWithSavedUsernameAndPassword_signsIn() {
8181
Intent startIntent = createStartIntent();
8282
ChooseAccountActivity chooseAccountActivity =
8383
Robolectric.buildActivity(ChooseAccountActivity.class)
84-
.withIntent(createStartIntent()).create().get();
84+
.withIntent(startIntent)
85+
.create()
86+
.get();
8587

8688
when(mCredentialsAPI.getEmailFromCredential()).thenReturn(TestConstants.EMAIL);
8789
when(mCredentialsAPI.getPasswordFromCredential()).thenReturn(TestConstants.PASSWORD);
@@ -113,7 +115,10 @@ public void testAutoSignInWithSavedIdp_redirectsToIdpSignIn() {
113115
Intent startIntent = createStartIntent();
114116
ChooseAccountActivity chooseAccountActivity =
115117
Robolectric.buildActivity(ChooseAccountActivity.class)
116-
.withIntent(startIntent).create().get();
118+
.withIntent(startIntent)
119+
.create()
120+
.get();
121+
117122
when(mCredentialsAPI.getEmailFromCredential()).thenReturn(TestConstants.EMAIL);
118123
when(mCredentialsAPI.getPasswordFromCredential()).thenReturn(null);
119124
when(mCredentialsAPI.getAccountTypeFromCredential()).thenReturn(

0 commit comments

Comments
 (0)