Skip to content

Ensure sessionStartedListenerTests requiring bridge enforce Old architecture#939

Merged
sbarrio merged 1 commit into
developfrom
sbarrio/fix/fix-android-session-started-listener-tests-on-new-arch
Jul 18, 2025
Merged

Ensure sessionStartedListenerTests requiring bridge enforce Old architecture#939
sbarrio merged 1 commit into
developfrom
sbarrio/fix/fix-android-session-started-listener-tests-on-new-arch

Conversation

@sbarrio

@sbarrio sbarrio commented Jul 16, 2025

Copy link
Copy Markdown
Contributor

What does this PR do?

We had two flaky tests for DdSdkSessionStartedListener. These tests require a valid bridge to be present, which is not if the tests are run under new architecture. This PR adds a new @TestOnly function that allows for tests to set the instance newArchitecture value so the test can properly use and observe the bridge.

Motivation

We should not have any flaky tests.

Additional notes

Screenshot 2025-07-16 at 12 01 05

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)
  • If this PR is auto-generated, please make sure also to manually update the code related to the change

@sbarrio sbarrio changed the title Ensure sessionStartedListenerTests requiring bridge enforce old arch Ensure sessionStartedListenerTests requiring bridge enforce Old architecture Jul 16, 2025
@sbarrio sbarrio marked this pull request as ready for review July 16, 2025 10:30
@sbarrio sbarrio requested a review from a team as a code owner July 16, 2025 10:30
@sbarrio sbarrio self-assigned this Jul 17, 2025
@sbarrio sbarrio merged commit df13c61 into develop Jul 18, 2025
10 checks passed
@sbarrio sbarrio deleted the sbarrio/fix/fix-android-session-started-listener-tests-on-new-arch branch July 18, 2025 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants