Skip to content

Integration Tests: don't initialize Purchases until the SKTestSession has been re-created#1946

Merged
NachoSoto merged 1 commit into
mainfrom
integration-tests-initialization-order
Sep 28, 2022
Merged

Integration Tests: don't initialize Purchases until the SKTestSession has been re-created#1946
NachoSoto merged 1 commit into
mainfrom
integration-tests-initialization-order

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

No description provided.


// Initialize `Purchases` *after* the fresh new session has been created
// (and transactions has been cleared), to avoid the SDK posting receipts from
// a previous test.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎉

@NachoSoto NachoSoto merged commit 6e5fcf2 into main Sep 28, 2022
@NachoSoto NachoSoto deleted the integration-tests-initialization-order branch September 28, 2022 15:39
NachoSoto added a commit to RevenueCat/purchases-hybrid-common that referenced this pull request Sep 28, 2022
NachoSoto added a commit to RevenueCat/purchases-hybrid-common that referenced this pull request Sep 28, 2022
NachoSoto pushed a commit that referenced this pull request Sep 28, 2022
**This is an automatic release.**

### Other Changes
* `ProductsFetcherSK2`: removed now redundant caching logic (#1908) via
NachoSoto (@NachoSoto)
* Created `CachingProductsManager` to provide consistent caching logic
when fetching products (#1907) via NachoSoto (@NachoSoto)
* Refactored `ReceiptFetcher.receiptData` (#1941) via NachoSoto
(@NachoSoto)
* Abstracted conversion from `async` to completion-block APIs (#1943)
via NachoSoto (@NachoSoto)
* Moved `InAppPurchase` into `AppleReceipt` (#1942) via NachoSoto
(@NachoSoto)
* `Purchases+async`: combined `@available` statements into a single one
(#1944) via NachoSoto (@NachoSoto)
* `Integration Tests`: don't initialize `Purchases` until the
`SKTestSession` has been re-created (#1946) via NachoSoto (@NachoSoto)
* `PostReceiptDataOperation`: print receipt data if `debug` logs are
enabled (#1940) via NachoSoto (@NachoSoto)

Co-authored-by: RCGitBot <dev+RCGitBot@revenuecat.com>
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