@@ -55,12 +55,10 @@ - (void)setUp {
5555 _DBPath = [RCNTestUtilities remoteConfigPathForTestDatabase ];
5656
5757 _expectionTimeout = 10.0 ;
58- id classMock = OCMClassMock ([RCNConfigDBManager class ]);
59- OCMStub ([classMock remoteConfigPathForDatabase ]).andReturn (_DBPath);
60- _DBManager = [[RCNConfigDBManager alloc ] init ];
58+ _DBManager = [[RCNConfigDBManager alloc ] initWithDbPath: _DBPath];
6159
6260 // TODO: Why does this make all tests fail?
63- // [_DBManager removeDatabaseWithPath: _DBPath];
61+ // [_DBManager removeDatabaseWithPath: _DBPath];
6462}
6563
6664- (void )tearDown {
@@ -134,9 +132,12 @@ - (void)testWriteAndLoadMainTableResult {
134132 // check DB read correctly
135133 [self ->_DBManager
136134 loadMainWithBundleIdentifier: bundleIdentifier
137- completionHandler: ^(BOOL success, NSDictionary *fetchedConfig,
138- NSDictionary *activeConfig, NSDictionary *defaultConfig,
139- NSDictionary *unusedRolloutMetadata) {
135+ completionHandler: ^(
136+ BOOL loadSuccess,
137+ NSDictionary <NSString *, NSDictionary <NSString *, id > *> *fetchedConfig,
138+ NSDictionary <NSString *, NSDictionary <NSString *, id > *> *activeConfig,
139+ NSDictionary <NSString *, NSDictionary <NSString *, id > *> *defaultConfig,
140+ NSDictionary *unusedRolloutMetadata) {
140141 NSMutableDictionary *res = [fetchedConfig mutableCopy ];
141142 XCTAssertTrue (success);
142143 FIRRemoteConfigValue *value = res[namespace_p][@" key100" ];
@@ -219,7 +220,7 @@ - (void)testWriteAndLoadMetadataResult {
219220 NSTimeInterval lastFetchTimestamp = [NSDate date ].timeIntervalSince1970 ;
220221
221222 NSDictionary *deviceContext =
222- @{@" app_version" : @" 1.0.1" , @" app_build" : @" 1.0.1.11" , @" os_version" : @" iOS9 .1" };
223+ @{@" app_version" : @" 1.0.1" , @" app_build" : @" 1.0.1.11" , @" os_version" : @" iOS19 .1" };
223224 NSDictionary *syncedDBCustomVariables = @{@" user_level" : @15 , @" user_experiences" : @" 2468" };
224225 NSArray *successFetchTimes = @[];
225226 NSTimeInterval now = [NSDate date ].timeIntervalSince1970 ;
0 commit comments