Skip to content

Commit 6738c6d

Browse files
Verify custom signals in fetch arguments match shared preferences
1 parent 32946b9 commit 6738c6d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

firebase-config/src/test/java/com/google/firebase/remoteconfig/internal/ConfigFetchHandlerTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -776,8 +776,7 @@ public void customSignals_updated_onSubsequentFetch() throws Exception {
776776
"age", "20");
777777
sharedPrefsClient.setCustomSignals(customSignals);
778778
fetchCallToHttpClientUpdatesClockAndReturnsConfig(firstFetchedContainer);
779-
780-
assertWithMessage("Fetch() failed!").that(fetchHandler.fetch().isSuccessful()).isTrue();
779+
fetchHandler.fetch();
781780

782781
verifyCustomSignals(customSignals);
783782
}
@@ -997,7 +996,7 @@ private void verifyCustomSignals(Map<String, String> customSignals) throws Excep
997996
/* customHeaders= */ any(),
998997
/* firstOpenTime= */ any(),
999998
/* currentTime= */ any(),
1000-
/* customSignals= */ eq(customSignals));
999+
/* customSignals= */ eq(sharedPrefsClient.getCustomSignals()));
10011000
assertThat(sharedPrefsClient.getCustomSignals()).isEqualTo(customSignals);
10021001
}
10031002

0 commit comments

Comments
 (0)