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