Skip to content

Commit 8037313

Browse files
committed
NSDictionaries cannot be assigned as compile time constants. move assignment to setup
1 parent af2c46e commit 8037313

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

OptimizelySDKDatafileManager/OptimizelySDKDatafileManagerTests/OPTLYDatafileManagerTest.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
static NSTimeInterval kDatafileDownloadInteval = 5; // in seconds
2727
static NSString *const kLastModifiedDate = @"Mon, 28 Nov 2016 06:10:59 GMT";
2828
static NSData *kDatafileData;
29-
static NSDictionary *const kCDNResponseHeaders =@{@"Content-Type":@"application/json",
30-
@"Last-Modified":kLastModifiedDate};
29+
static NSDictionary *kCDNResponseHeaders = nil;
3130

3231
@interface OPTLYDatafileManager(test)
3332
@property (nonatomic, strong) NSTimer *datafileDownloadTimer;
@@ -46,6 +45,8 @@ @implementation OPTLYDatafileManagerTest
4645
+ (void)setUp {
4746
[super setUp];
4847

48+
kCDNResponseHeaders = @{@"Content-Type":@"application/json",
49+
@"Last-Modified":kLastModifiedDate};
4950
kDatafileData = [OPTLYTestHelper loadJSONDatafileIntoDataObject:kDatamodelDatafileName];
5051

5152
// stub all requests

0 commit comments

Comments
 (0)