File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
main/java/com/google/firebase/remoteconfig/internal
test/java/com/google/firebase/remoteconfig/internal Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -575,6 +575,8 @@ public static FetchResponse forBackendUpdatesFetched(
575
575
lastFetchETag );
576
576
}
577
577
578
+ // Passing in param fetchedConfigs because it contains templateVersion but no other active
579
+ // fields.
578
580
public static FetchResponse forBackendHasNoUpdates (
579
581
Date fetchTime , ConfigContainer fetchedConfigs ) {
580
582
return new FetchResponse (
Original file line number Diff line number Diff line change @@ -161,13 +161,15 @@ public void fetch_newValues_responseSet() throws Exception {
161
161
}
162
162
163
163
@ Test
164
- public void fetch_noChange_responseNotSet () throws Exception {
164
+ public void fetch_noChange_responseOnlyContainsTemplateVersion () throws Exception {
165
165
setServerResponseTo (noChangeResponseBody , SECOND_ETAG );
166
166
167
167
FetchResponse response = fetch (SECOND_ETAG );
168
168
169
169
assertThat (response .getLastFetchETag ()).isNull ();
170
170
assertThat (response .getFetchedConfigs ()).isNotNull ();
171
+ assertThat (response .getFetchedConfigs ().getTemplateVersionNumber ()).isNotNull ();
172
+ assertThat (response .getFetchedConfigs ().getConfigs ().length ()).isEqualTo (0 );
171
173
}
172
174
173
175
@ Test
You can’t perform that action at this time.
0 commit comments