@@ -348,9 +348,9 @@ 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 (); },
352+ rc_),
353+ " FetchAndActivate " ));
354354 uint64_t current_fetch_time = rc_->GetInfo ().fetch_time ;
355355 // Making sure the config settings's fetch interval is 12 hours
356356 EXPECT_TRUE (WaitForCompletion (SetDefaultConfigSettings (rc_),
@@ -360,18 +360,15 @@ TEST_F(FirebaseRemoteConfigTest, TestFetchInterval) {
360360 RunWithRetry ([](RemoteConfig* rc) { return rc->Fetch (); }, rc_),
361361 " Fetch" ));
362362 EXPECT_EQ (current_fetch_time, rc_->GetInfo ().fetch_time );
363- #if !(TARGET_OS_IPHONE) // iOS failed to set configSettings
364363 // Update fetch interval to 0
365364 EXPECT_TRUE (WaitForCompletion (SetZeroIntervalConfigSettings (rc_),
366365 " 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 );
369367 // Third fetch, this should operate the real fetch and update the fetch time.
370368 EXPECT_TRUE (WaitForCompletion (
371369 RunWithRetry ([](RemoteConfig* rc) { return rc->Fetch (); }, rc_),
372370 " Fetch" ));
373371 EXPECT_NE (current_fetch_time, rc_->GetInfo ().fetch_time );
374- #endif
375372}
376373
377374} // namespace firebase_testapp_automated
0 commit comments