You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getStub.onCall(4).returns(Promise.resolve({statusCode: 200,_response: {headers: createTimestampHeaders("2025-09-07T00:00:00Z")}, ...sentinel}asany));// server old value from another cache server
@@ -192,7 +192,7 @@ describe("dynamic refresh", function () {
192
192
awaitsleepInMs(2*1000+1);
193
193
awaitsettings.refresh();
194
194
expect(listKvRequestCount).eq(2);
195
-
expect(getKvRequestCount).eq(2);// one conditional request to detect change and one request as part of loading all kvs (because app.settings.fontColor doesn't exist in the response of listKv request)
195
+
expect(getKvRequestCount).eq(2);// one conditional request to detect change
@@ -370,7 +370,7 @@ describe("dynamic refresh", function () {
370
370
}
371
371
});
372
372
expect(listKvRequestCount).eq(1);
373
-
expect(getKvRequestCount).eq(1);// app.settings.bgColor doesn't exist in the response of listKv request, so an additional getKv request is made to get it.
expect(settings.get("app.settings.fontColor")).eq("red");// initial load should succeed
232
+
// we only mocked getConfigurationSetting for initial load, so the watch request during refresh will still use the SDK's pipeline, then the headerPolicy can capture the headers
0 commit comments