@@ -12,7 +12,7 @@ class UnleashIntegrationTests: XCTestCase {
12
12
clientKey: " SDKIntegration:development.f0474f4a37e60794ee8fb00a4c112de58befde962af6d5055b383ea3 " ,
13
13
refreshInterval: 15 ,
14
14
appName: " testIntegration " ,
15
- context: [ " clientId " : " disabled " ]
15
+ context: [ " clientId " : " disabled " , " sessionId " : " 1234 " ]
16
16
)
17
17
}
18
18
@@ -23,7 +23,7 @@ class UnleashIntegrationTests: XCTestCase {
23
23
func testUserJourneyHappyPath( ) {
24
24
let expectation = self . expectation ( description: " Waiting for client updates " )
25
25
26
- XCTAssertEqual ( unleashClient. context. toMap ( ) , [ " environment " : " default " , " clientId " : " disabled " , " appName " : " testIntegration " ] )
26
+ XCTAssertEqual ( unleashClient. context. toMap ( ) , [ " environment " : " default " , " clientId " : " disabled " , " appName " : " testIntegration " , " sessionId " : " 1234 " ] )
27
27
28
28
unleashClient. subscribe ( name: " ready " , callback: {
29
29
XCTAssertFalse ( self . unleashClient. isEnabled ( name: self . featureName) , " Feature should be disabled " )
@@ -59,7 +59,7 @@ class UnleashIntegrationTests: XCTestCase {
59
59
func testUserJourneyHappyPathWithUnleashEvent( ) {
60
60
let expectation = self . expectation ( description: " Waiting for client updates " )
61
61
62
- XCTAssertEqual ( unleashClient. context. toMap ( ) , [ " environment " : " default " , " clientId " : " disabled " , " appName " : " testIntegration " ] )
62
+ XCTAssertEqual ( unleashClient. context. toMap ( ) , [ " environment " : " default " , " clientId " : " disabled " , " appName " : " testIntegration " , " sessionId " : " 1234 " ] )
63
63
64
64
unleashClient. subscribe ( . ready) {
65
65
XCTAssertFalse ( self . unleashClient. isEnabled ( name: self . featureName) , " Feature should be disabled " )
0 commit comments