Skip to content

Commit 68acde5

Browse files
committed
Correcting instrumented tests to be reliable.
1 parent 4be3847 commit 68acde5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

firebase-installations/src/androidTest/java/com/google/firebase/installations/FirebaseInstallationsInstrumentedTest.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,6 @@ public void testGetId_PersistedFidOk_BackendOk() throws Exception {
125125
assertWithMessage("Persisted Fid doesn't match")
126126
.that(entryValue.getFirebaseInstallationId())
127127
.isEqualTo(TEST_FID_1);
128-
assertWithMessage("Registration status doesn't match")
129-
.that(entryValue.getRegistrationStatus())
130-
.isEqualTo(PersistedFid.RegistrationStatus.PENDING);
131128

132129
// Waiting for Task that registers FID on the FIS Servers
133130
executor.awaitTermination(500, TimeUnit.MILLISECONDS);
@@ -155,9 +152,6 @@ public void testGetId_multipleCalls_sameFIDReturned() throws Exception {
155152
assertWithMessage("Persisted Fid doesn't match")
156153
.that(entryValue.getFirebaseInstallationId())
157154
.isEqualTo(TEST_FID_1);
158-
assertWithMessage("Registration status doesn't match")
159-
.that(entryValue.getRegistrationStatus())
160-
.isEqualTo(PersistedFid.RegistrationStatus.PENDING);
161155

162156
Tasks.await(firebaseInstallations.getId());
163157

@@ -185,9 +179,6 @@ public void testGetId_PersistedFidOk_BackendError() throws Exception {
185179
assertWithMessage("Persisted Fid doesn't match")
186180
.that(entryValue.getFirebaseInstallationId())
187181
.isEqualTo(TEST_FID_1);
188-
assertWithMessage("Registration Fid doesn't match")
189-
.that(entryValue.getRegistrationStatus())
190-
.isEqualTo(PersistedFid.RegistrationStatus.PENDING);
191182

192183
// Waiting for Task that registers FID on the FIS Servers
193184
executor.awaitTermination(500, TimeUnit.MILLISECONDS);

0 commit comments

Comments
 (0)