Skip to content

Disable getSessionId test on emulators. #1193

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions analytics/integration_test/src/integration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@ TEST_F(FirebaseAnalyticsTest, TestGetAnalyticsInstanceID) {
}

TEST_F(FirebaseAnalyticsTest, TestGetSessionID) {
// Android emulator tests are currently not working due to getSessionId being
// disabled on virtual FTL devices, due to an older version of Google Play
// services.
SKIP_TEST_ON_ANDROID_EMULATOR;

// iOS simulator tests are currently extra flaky, occasionally failing with an
// "Analytics uninitialized" error even after multiple attempts.
SKIP_TEST_ON_IOS_SIMULATOR;

// On Android, if SetConsent was tested, this test will fail, since the app
// needs to be restarted after consent is denied or it won't generate a new
// sessionID. To not break the tests, skip this test in that case.
Expand Down