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
Copy file name to clipboardExpand all lines: src/__tests__/browserSuites/readiness.spec.js
+9-49Lines changed: 9 additions & 49 deletions
Original file line number
Diff line number
Diff line change
@@ -209,12 +209,7 @@ export default function (fetchMock, assert) {
209
209
t.equal(getMembershipsHits(),4*CLIENTS_COUNT-1,'It should have not tried to synchronize segments again after the last update that left us in a no segment state.');
210
210
t.equal(readyCount,CLIENTS_COUNT,'all clients must be ready');
211
211
212
-
Promise.all([
213
-
client2.destroy(),
214
-
client3.destroy(),
215
-
client.destroy()
216
-
]).then(()=>{t.end();});
217
-
212
+
splitio.destroy().then(()=>{t.end();});
218
213
},10000);
219
214
},0);
220
215
});
@@ -293,12 +288,7 @@ export default function (fetchMock, assert) {
293
288
t.equal(getMembershipsHits(),4*CLIENTS_COUNT-1,'It should have not tried to synchronize segments again after the last update that left us in a no segment state.');
294
289
t.equal(readyCount,CLIENTS_COUNT,'all clients must be ready');
295
290
296
-
Promise.all([
297
-
client2.destroy(),
298
-
client3.destroy(),
299
-
client.destroy()
300
-
]).then(()=>{t.end();});
301
-
291
+
splitio.destroy().then(()=>{t.end();});
302
292
},10000);
303
293
},0);
304
294
});
@@ -373,12 +363,7 @@ export default function (fetchMock, assert) {
373
363
t.equal(getMembershipsHits(),6*CLIENTS_COUNT-1,'It should keep the producer synchronizing periodically..');
374
364
t.equal(readyCount,CLIENTS_COUNT,'all clients must be ready');
375
365
376
-
Promise.all([
377
-
client2.destroy(),
378
-
client3.destroy(),
379
-
client.destroy()
380
-
]).then(()=>{t.end();});
381
-
366
+
splitio.destroy().then(()=>{t.end();});
382
367
},3000);
383
368
},0);
384
369
});
@@ -442,12 +427,7 @@ export default function (fetchMock, assert) {
442
427
setTimeout(()=>{
443
428
t.equal(getMembershipsHits(),6*CLIENTS_COUNT,'It should keep the producer synchronizing periodically..');
444
429
445
-
Promise.all([
446
-
client2.destroy(),
447
-
client3.destroy(),
448
-
client.destroy()
449
-
]).then(()=>{t.end();});
450
-
430
+
splitio.destroy().then(()=>{t.end();});
451
431
},3000);
452
432
},0);
453
433
});
@@ -494,11 +474,7 @@ export default function (fetchMock, assert) {
494
474
495
475
setTimeout(()=>{
496
476
t.equal(getMembershipsHits(),3*CLIENTS_COUNT,'memberships should had been hit once per client on the first attempt and keep syncing afterwards.');
0 commit comments