@@ -36,8 +36,8 @@ const MILLIS_SPLIT_CHANGES_RESPONSE = 400;
3636
3737/**
3838 * Sequence of calls:
39- * 0.0 secs: initial SyncAll (/splitChanges, /mySegments /*), auth, SSE connection, SDK_READY_FROM_CACHE
40- * 0.1 secs: SSE connection opened -> syncAll (/splitChanges, /mySegments /*)
39+ * 0.0 secs: initial SyncAll (/splitChanges, /memberships /*), auth, SSE connection, SDK_READY_FROM_CACHE
40+ * 0.1 secs: SSE connection opened -> syncAll (/splitChanges, /memberships /*)
4141 * 0.2 secs: SPLIT_KILL event -> /splitChanges
4242 * 0.4 secs: /splitChanges response --> SDK_READY
4343 */
@@ -71,8 +71,8 @@ export function testSplitKillOnReadyFromCache(fetchMock, assert) {
7171
7272 // 1 auth request
7373 fetchMock . getOnce ( url ( settings , `/v2/auth?s=1.2&users=${ encodeURIComponent ( userKey ) } ` ) , { status : 200 , body : authPushEnabledNicolas } ) ;
74- // 2 mySegments requests: initial sync and after SSE opened
75- fetchMock . get ( { url : url ( settings , '/mySegments /nicolas%40split.io' ) , repeat : 2 } , { status : 200 , body : { mySegments : [ ] } } ) ;
74+ // 2 memberships requests: initial sync and after SSE opened
75+ fetchMock . get ( { url : url ( settings , '/memberships /nicolas%40split.io' ) , repeat : 2 } , { status : 200 , body : { ms : { } } } ) ;
7676
7777 // 2 splitChanges request: initial sync and after SSE opened. Sync after SPLIT_KILL is not performed because SplitsSyncTask is "executing"
7878 fetchMock . getOnce ( url ( settings , '/splitChanges?s=1.2&since=25' ) , { status : 200 , body : splitChangesMock1 } , { delay : MILLIS_SPLIT_CHANGES_RESPONSE , /* delay response */ } ) ;
0 commit comments