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
assert.true(nearlyEqual(lapse,MILLIS_STREAMING_DISABLED_CONTROL+settings.scheduler.featuresRefreshRate,100),'fetch due to fourth fallback to polling');
returnnewPromise(res=>{setTimeout(()=>res({status: 200,body: {ff: { ...splitChangesMock1.ff,s: 25}},headers: {}}),200);});// 400ms is how long it'll take to reply with Splits, no SDK_READY should be emitted before that.
returnnewPromise(res=>{setTimeout(()=>res({status: 200,body: membershipsNicolas,headers: {}}),400);});// First client gets segments before splits. No segment cache loading (yet)
156
154
});
@@ -258,7 +256,6 @@ export default function (fetchMock, assert) {
258
256
t.equal(localStorage.getItem('readyFromCache_3.SPLITIO.split.always_on'),alwaysOnSplitInverted,'feature flags must not be cleaned from cache');
259
257
returnnewPromise(res=>{setTimeout(()=>res({status: 200,body: {ff: { ...splitChangesMock1.ff,s: 25}},headers: {}}),200);});// 400ms is how long it'll take to reply with Splits, no SDK_READY should be emitted before that.
returnnewPromise(res=>{setTimeout(()=>res({status: 200,body: membershipsNicolas,headers: {}}),400);});// First client gets segments before splits. No segment cache loading (yet)
264
261
});
@@ -379,7 +376,6 @@ export default function (fetchMock, assert) {
379
376
t.equal(localStorage.length,3,'feature flags cache data must be cleaned from localStorage');
returnnewPromise(res=>{setTimeout(()=>res({status: 200,body: membershipsNicolas,headers: {}}),CLIENT_READY_MS);});// First client gets segments before splits. No segment cache loading (yet)
385
381
});
@@ -808,7 +804,7 @@ export default function (fetchMock, assert) {
@@ -822,7 +818,7 @@ export default function (fetchMock, assert) {
822
818
});
823
819
824
820
awaitclient.ready();
825
-
t.equal(manager.names().sort().length,33,'active splits should be present for evaluation');
821
+
t.equal(manager.names().sort().length,35,'active splits should be present for evaluation');
826
822
827
823
awaitsplitio.destroy();
828
824
t.equal(localStorage.getItem('readyFromCache_10.SPLITIO.splits.till'),'1457552620999','splits.till must correspond to the till of the last successfully fetched Splits');
@@ -839,7 +835,7 @@ export default function (fetchMock, assert) {
t.equal(manager.names().sort().length,33,'active splits should be present for evaluation');
838
+
t.equal(manager.names().sort().length,35,'active splits should be present for evaluation');
843
839
t.false(console.log.calledWithMatch('clearOnInit was set and cache was not cleared in the last 24 hours. Cleaning up cache'),'It should log a message about cleaning up cache');
844
840
845
841
awaitsplitio.destroy();
@@ -860,7 +856,7 @@ export default function (fetchMock, assert) {
t.equal(manager.names().sort().length,33,'active splits should be present for evaluation');
859
+
t.equal(manager.names().sort().length,35,'active splits should be present for evaluation');
864
860
t.true(console.log.calledWithMatch('clearOnInit was set and cache was not cleared in the last 24 hours. Cleaning up cache'),'It should log a message about cleaning up cache');
0 commit comments