Skip to content

Commit 33c1963

Browse files
authored
Add a delay to the Analytics test app. (#788)
* Add a delay when the Analytics test finishes.
1 parent f6ad97a commit 33c1963

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

analytics/integration_test/src/integration_test.cc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444
namespace firebase_testapp_automated {
4545

46+
using app_framework::ProcessEvents;
4647
using firebase_test_framework::FirebaseTest;
4748

4849
class FirebaseAnalyticsTest : public FirebaseTest {
@@ -70,6 +71,14 @@ void FirebaseAnalyticsTest::TearDownTestSuite() {
7071
firebase::analytics::Terminate();
7172
delete shared_app_;
7273
shared_app_ = nullptr;
74+
75+
// The Analytics integration test is too fast for FTL, so pause a few seconds
76+
// here.
77+
ProcessEvents(1000);
78+
ProcessEvents(1000);
79+
ProcessEvents(1000);
80+
ProcessEvents(1000);
81+
ProcessEvents(1000);
7382
}
7483

7584
TEST_F(FirebaseAnalyticsTest, TestSetCollectionEnabled) {

0 commit comments

Comments
 (0)