Skip to content

Conversation

@kgangineni
Copy link
Collaborator

Summary of changes

  • Fix unit test failing intermittently

Authors

List GitHub usernames for everyone who contributed to this pull request.

@kgangineni kgangineni marked this pull request as ready for review December 3, 2025 17:31
@kgangineni kgangineni enabled auto-merge December 3, 2025 17:31
payPalWebLauncher = mockk(relaxed = true)
patchCCOWithAppSwitchEligibility = mockk(relaxed = true)
deviceInspector = mockk(relaxed = true)
Dispatchers.setMain(testDispatcher)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Dispatchers.setMain(testDispatcher)
MockKAnnotations.init(this)
Dispatchers.setMain(testDispatcher)

We should reset the mocks between every test run.

@kgangineni kgangineni merged commit 8a3aa58 into develop Dec 4, 2025
8 checks passed
@kgangineni kgangineni deleted the fixRandomUnitTest branch December 4, 2025 20:03
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.

3 participants