Skip to content

Conversation

@ajpallares
Copy link
Member

Motivation

There were some integration tests that were flaky because they relied on background tasks that would not have a deterministic behavior and would lead to race conditions. These tests checked the SDK behavior regarding flushing of ad events when certain application notifications happened (e.g. applicationWillEnterForegroundNotification).

Recent failure here.

Description

This PR removes those flaky tests and replaces them with other unit tests that check that the Purchases instance calls (or not) the EventsManager's flush events method as expected.

@emerge-tools
Copy link

emerge-tools bot commented Dec 26, 2025

📸 Snapshot Test

1 modified, 240 unchanged

Name Added Removed Modified Renamed Unchanged Errored Approval
RevenueCat
com.revenuecat.PaywallsTester
0 0 1 0 240 0 ✅ Approved

🛸 Powered by Emerge Tools

@ajpallares
Copy link
Member Author

@RCGitBot please test

@ajpallares ajpallares marked this pull request as ready for review December 26, 2025 18:48
@ajpallares ajpallares requested a review from a team as a code owner December 26, 2025 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants