-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
195b1b1
commit 24137dc
Showing
1 changed file
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -402,8 +402,8 @@ export default function (fetchMock, assert) { | |
}); | ||
const CLIENTS_COUNT = 3; // Just so it's easier to read the assertions. | ||
const client = splitio.client(); | ||
const client2 = splitio.client('[email protected]'); | ||
const client3 = splitio.client('[email protected]'); | ||
splitio.client('[email protected]'); | ||
splitio.client('[email protected]'); | ||
|
||
client.once(client.Event.SDK_READY, () => { | ||
t.ok(Date.now() - start >= membershipsEndpointDelay, 'It should not be ready without waiting for memberships, as there are segments in the first splits payload.'); | ||
|
@@ -466,8 +466,8 @@ export default function (fetchMock, assert) { | |
}); | ||
const CLIENTS_COUNT = 3; // Just so it's easier to read the assertions. | ||
const client = splitio.client(); | ||
const client2 = splitio.client('[email protected]'); | ||
const client3 = splitio.client('[email protected]'); | ||
splitio.client('[email protected]'); | ||
splitio.client('[email protected]'); | ||
|
||
client.once(client.Event.SDK_READY, () => { | ||
t.ok(Date.now() - start >= membershipsEndpointDelay, 'It should not be ready without waiting for memberships, when we start from cache it might be stale.'); | ||
|
@@ -509,8 +509,8 @@ export default function (fetchMock, assert) { | |
}); | ||
const CLIENTS_COUNT = 3; // Just so it's easier to read the assertions. | ||
const client = splitio.client(); | ||
const client2 = splitio.client('[email protected]'); | ||
const client3 = splitio.client('[email protected]'); | ||
splitio.client('[email protected]'); | ||
splitio.client('[email protected]'); | ||
|
||
client.once(client.Event.SDK_READY, () => { | ||
t.ok(Date.now() - start < 50, 'It should be ready quickly, since it had no segments and update has no segments either.'); | ||
|
@@ -556,8 +556,8 @@ export default function (fetchMock, assert) { | |
}); | ||
const CLIENTS_COUNT = 3; // Just so it's easier to read the assertions. | ||
const client = splitio.client(); | ||
const client2 = splitio.client('[email protected]'); | ||
const client3 = splitio.client('[email protected]'); | ||
splitio.client('[email protected]'); | ||
splitio.client('[email protected]'); | ||
|
||
client.once(client.Event.SDK_READY, () => { | ||
const delay = Date.now() - start; | ||
|
@@ -599,8 +599,8 @@ export default function (fetchMock, assert) { | |
}); | ||
const CLIENTS_COUNT = 3; // Just so it's easier to read the assertions. | ||
const client = splitio.client(); | ||
const client2 = splitio.client('[email protected]'); | ||
const client3 = splitio.client('[email protected]'); | ||
splitio.client('[email protected]'); | ||
splitio.client('[email protected]'); | ||
|
||
client.once(client.Event.SDK_READY, () => { | ||
t.ok(Date.now() - start >= membershipsEndpointDelay, 'It should not be ready without waiting for memberships, when we start from cache it might be stale and we had segments even though the update has nothing.'); | ||
|
@@ -645,8 +645,8 @@ export default function (fetchMock, assert) { | |
}); | ||
const CLIENTS_COUNT = 3; // Just so it's easier to read the assertions. | ||
const client = splitio.client(); | ||
const client2 = splitio.client('[email protected]'); | ||
const client3 = splitio.client('[email protected]'); | ||
splitio.client('[email protected]'); | ||
splitio.client('[email protected]'); | ||
|
||
client.once(client.Event.SDK_READY, () => { | ||
t.ok(Date.now() - start < 50, 'It should be ready without waiting for memberships, since when it downloads changes it will have no more use for them.'); | ||
|