diff --git a/admob/integration_test/src/integration_test.cc b/admob/integration_test/src/integration_test.cc index 26040d32d8..eb994d8e16 100644 --- a/admob/integration_test/src/integration_test.cc +++ b/admob/integration_test/src/integration_test.cc @@ -123,6 +123,11 @@ void FirebaseAdMobTest::SetUpTestSuite() { } void FirebaseAdMobTest::TearDownTestSuite() { + // Workaround: AdMob does some of its initialization in the main + // thread, so if you terminate it too quickly after initialization + // it can cause issues. Add a small delay here in case most of the + // tests are skipped. + ProcessEvents(1000); LogDebug("Shutdown AdMob."); firebase::admob::Terminate(); LogDebug("Shutdown Firebase App.");