diff --git a/analytics/integration_test/src/integration_test.cc b/analytics/integration_test/src/integration_test.cc index 614b8885e0..f71b648398 100644 --- a/analytics/integration_test/src/integration_test.cc +++ b/analytics/integration_test/src/integration_test.cc @@ -43,6 +43,7 @@ namespace firebase_testapp_automated { +using app_framework::ProcessEvents; using firebase_test_framework::FirebaseTest; class FirebaseAnalyticsTest : public FirebaseTest { @@ -70,6 +71,14 @@ void FirebaseAnalyticsTest::TearDownTestSuite() { firebase::analytics::Terminate(); delete shared_app_; shared_app_ = nullptr; + + // The Analytics integration test is too fast for FTL, so pause a few seconds + // here. + ProcessEvents(1000); + ProcessEvents(1000); + ProcessEvents(1000); + ProcessEvents(1000); + ProcessEvents(1000); } TEST_F(FirebaseAnalyticsTest, TestSetCollectionEnabled) {