@@ -35,7 +35,6 @@ class HoldoutTests: XCTestCase {
3535    static  var  sampleData :  [ String :  Any ]  =  [ " id " :  " 11111 " , 
3636                                            " key " :  " background " , 
3737                                            " status " :  " Running " , 
38-                                             " layerId " :  " 22222 " , 
3938                                            " variations " :  [ HoldoutTests . variationData] , 
4039                                            " trafficAllocation " :  [ HoldoutTests . trafficAllocationData] , 
4140                                            " audienceIds " :  [ " 33333 " ] , 
@@ -44,7 +43,6 @@ class HoldoutTests: XCTestCase {
4443    static  var  sampleDataWithIncludedFlags :  [ String :  Any ]  =  [ " id " :  " 55555 " , 
4544                                            " key " :  " background " , 
4645                                            " status " :  " Running " , 
47-                                             " layerId " :  " 22222 " , 
4846                                            " variations " :  [ HoldoutTests . variationData] , 
4947                                            " trafficAllocation " :  [ HoldoutTests . trafficAllocationData] , 
5048                                            " audienceIds " :  [ " 33333 " ] , 
@@ -54,7 +52,6 @@ class HoldoutTests: XCTestCase {
5452    static  var  sampleDataWithExcludedFlags :  [ String :  Any ]  =  [ " id " :  " 3333 " , 
5553                                                             " key " :  " background " , 
5654                                                             " status " :  " Running " , 
57-                                                              " layerId " :  " 22222 " , 
5855                                                             " variations " :  [ HoldoutTests . variationData] , 
5956                                                             " trafficAllocation " :  [ HoldoutTests . trafficAllocationData] , 
6057                                                             " audienceIds " :  [ " 33333 " ] , 
@@ -76,7 +73,6 @@ extension HoldoutTests {
7673        XCTAssert ( model. id ==  " 11111 " ) 
7774        XCTAssert ( model. key ==  " background " ) 
7875        XCTAssert ( model. status ==  . running) 
79-         XCTAssert ( model. layerId ==  " 22222 " ) 
8076        XCTAssert ( model. variations ==  [ try !   OTUtils . model ( from:  HoldoutTests . variationData) ] ) 
8177        XCTAssert ( model. trafficAllocation ==  [ try !   OTUtils . model ( from:  HoldoutTests . trafficAllocationData) ] ) 
8278        XCTAssert ( model. audienceIds ==  [ " 33333 " ] ) 
@@ -91,7 +87,6 @@ extension HoldoutTests {
9187        XCTAssert ( model. id ==  " 55555 " ) 
9288        XCTAssert ( model. key ==  " background " ) 
9389        XCTAssert ( model. status ==  . running) 
94-         XCTAssert ( model. layerId ==  " 22222 " ) 
9590        XCTAssert ( model. variations ==  [ try !   OTUtils . model ( from:  HoldoutTests . variationData) ] ) 
9691        XCTAssert ( model. trafficAllocation ==  [ try !   OTUtils . model ( from:  HoldoutTests . trafficAllocationData) ] ) 
9792        XCTAssert ( model. audienceIds ==  [ " 33333 " ] ) 
@@ -107,7 +102,6 @@ extension HoldoutTests {
107102        XCTAssert ( model. id ==  " 3333 " ) 
108103        XCTAssert ( model. key ==  " background " ) 
109104        XCTAssert ( model. status ==  . running) 
110-         XCTAssert ( model. layerId ==  " 22222 " ) 
111105        XCTAssert ( model. variations ==  [ try !   OTUtils . model ( from:  HoldoutTests . variationData) ] ) 
112106        XCTAssert ( model. trafficAllocation ==  [ try !   OTUtils . model ( from:  HoldoutTests . trafficAllocationData) ] ) 
113107        XCTAssert ( model. audienceIds ==  [ " 33333 " ] ) 
@@ -126,7 +120,6 @@ extension HoldoutTests {
126120        XCTAssert ( model. id ==  " 11111 " ) 
127121        XCTAssert ( model. key ==  " background " ) 
128122        XCTAssert ( model. status ==  . running) 
129-         XCTAssert ( model. layerId ==  " 22222 " ) 
130123        XCTAssert ( model. variations ==  [ try !   OTUtils . model ( from:  HoldoutTests . variationData) ] ) 
131124        XCTAssert ( model. trafficAllocation ==  [ try !   OTUtils . model ( from:  HoldoutTests . trafficAllocationData) ] ) 
132125        XCTAssert ( model. audienceIds ==  [ " 33333 " ] ) 
@@ -156,14 +149,6 @@ extension HoldoutTests {
156149        XCTAssertNil ( model) 
157150    } 
158151
159-     func  testDecodeFailWithMissingLayerId( )  { 
160-         var  data :  [ String :  Any ]  =  HoldoutTests . sampleData
161-         data [ " layerId " ]  =  nil 
162-         
163-         let  model :  Holdout ?   =  try ?   OTUtils . model ( from:  data) 
164-         XCTAssertNil ( model) 
165-     } 
166-     
167152    func  testDecodeFailWithMissingVariations( )  { 
168153        var  data :  [ String :  Any ]  =  HoldoutTests . sampleData
169154        data [ " variations " ]  =  nil 
@@ -203,7 +188,6 @@ extension HoldoutTests {
203188        let  commonData :  [ String :  Any ]  =  [ " id " :  " 11111 " , 
204189                                         " key " :  " background " , 
205190                                         " status " :  " Running " , 
206-                                          " layerId " :  " 22222 " , 
207191                                         " variations " :  [ HoldoutTests . variationData] , 
208192                                         " trafficAllocation " :  [ HoldoutTests . trafficAllocationData] , 
209193                                         " audienceIds " :  [ ] , 
0 commit comments