@@ -348,9 +348,8 @@ TEST_F(FirebaseRemoteConfigTest, TestFetch) {
348348TEST_F (FirebaseRemoteConfigTest, TestFetchInterval) {
349349 ASSERT_NE (rc_, nullptr );
350350 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" ));
354353 uint64_t current_fetch_time = rc_->GetInfo ().fetch_time ;
355354 // Making sure the config settings's fetch interval is 12 hours
356355 EXPECT_TRUE (WaitForCompletion (SetDefaultConfigSettings (rc_),
@@ -360,18 +359,15 @@ TEST_F(FirebaseRemoteConfigTest, TestFetchInterval) {
360359 RunWithRetry ([](RemoteConfig* rc) { return rc->Fetch (); }, rc_),
361360 " Fetch" ));
362361 EXPECT_EQ (current_fetch_time, rc_->GetInfo ().fetch_time );
363- #if !(TARGET_OS_IPHONE) // iOS failed to set configSettings
364362 // Update fetch interval to 0
365363 EXPECT_TRUE (WaitForCompletion (SetZeroIntervalConfigSettings (rc_),
366364 " 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 );
369366 // Third fetch, this should operate the real fetch and update the fetch time.
370367 EXPECT_TRUE (WaitForCompletion (
371368 RunWithRetry ([](RemoteConfig* rc) { return rc->Fetch (); }, rc_),
372369 " Fetch" ));
373370 EXPECT_NE (current_fetch_time, rc_->GetInfo ().fetch_time );
374- #endif
375371}
376372
377373} // namespace firebase_testapp_automated
0 commit comments