@@ -348,9 +348,9 @@ TEST_F(FirebaseRemoteConfigTest, TestFetch) {
348
348
TEST_F (FirebaseRemoteConfigTest, TestFetchInterval) {
349
349
ASSERT_NE (rc_, nullptr );
350
350
EXPECT_TRUE (WaitForCompletion (
351
- RunWithRetry ([](RemoteConfig* rc) { return rc->Fetch (); }, rc_) ,
352
- " Fetch " ));
353
- EXPECT_TRUE ( WaitForCompletion (rc_-> Activate (), " Activate " ));
351
+ RunWithRetry ([](RemoteConfig* rc) { return rc->FetchAndActivate (); },
352
+ rc_),
353
+ " FetchAndActivate " ));
354
354
uint64_t current_fetch_time = rc_->GetInfo ().fetch_time ;
355
355
// Making sure the config settings's fetch interval is 12 hours
356
356
EXPECT_TRUE (WaitForCompletion (SetDefaultConfigSettings (rc_),
@@ -360,18 +360,15 @@ TEST_F(FirebaseRemoteConfigTest, TestFetchInterval) {
360
360
RunWithRetry ([](RemoteConfig* rc) { return rc->Fetch (); }, rc_),
361
361
" Fetch" ));
362
362
EXPECT_EQ (current_fetch_time, rc_->GetInfo ().fetch_time );
363
- #if !(TARGET_OS_IPHONE) // iOS failed to set configSettings
364
363
// Update fetch interval to 0
365
364
EXPECT_TRUE (WaitForCompletion (SetZeroIntervalConfigSettings (rc_),
366
365
" SetZeroIntervalConfigSettings" ));
367
- LogDebug (" Current Fetch Interval: %lld" ,
368
- rc_->GetConfigSettings ().minimum_fetch_interval_in_milliseconds );
366
+ EXPECT_EQ (0 , rc_->GetConfigSettings ().minimum_fetch_interval_in_milliseconds );
369
367
// Third fetch, this should operate the real fetch and update the fetch time.
370
368
EXPECT_TRUE (WaitForCompletion (
371
369
RunWithRetry ([](RemoteConfig* rc) { return rc->Fetch (); }, rc_),
372
370
" Fetch" ));
373
371
EXPECT_NE (current_fetch_time, rc_->GetInfo ().fetch_time );
374
- #endif
375
372
}
376
373
377
374
} // namespace firebase_testapp_automated
0 commit comments