Skip to content

Commit 0d93bad

Browse files
authored
Disable getSessionId test on emulators. (#1193)
* Disable getSessionId test on Android emulator. * Also skip on iOS simulator.
1 parent 7911900 commit 0d93bad

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
@@ -107,6 +107,15 @@ TEST_F(FirebaseAnalyticsTest, TestGetAnalyticsInstanceID) {
107107
}
108108

109109
TEST_F(FirebaseAnalyticsTest, TestGetSessionID) {
110+
// Android emulator tests are currently not working due to getSessionId being
111+
// disabled on virtual FTL devices, due to an older version of Google Play
112+
// services.
113+
SKIP_TEST_ON_ANDROID_EMULATOR;
114+
115+
// iOS simulator tests are currently extra flaky, occasionally failing with an
116+
// "Analytics uninitialized" error even after multiple attempts.
117+
SKIP_TEST_ON_IOS_SIMULATOR;
118+
110119
// On Android, if SetConsent was tested, this test will fail, since the app
111120
// needs to be restarted after consent is denied or it won't generate a new
112121
// sessionID. To not break the tests, skip this test in that case.

0 commit comments

Comments
 (0)