Skip to content

Integration Tests: always clear Bundle.appStoreReceiptURL before every test#1671

Merged
NachoSoto merged 1 commit into
mainfrom
integration-tests-receipt-url
Jun 7, 2022
Merged

Integration Tests: always clear Bundle.appStoreReceiptURL before every test#1671
NachoSoto merged 1 commit into
mainfrom
integration-tests-receipt-url

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

I've noticed sometimes tests start with some receipts that are pending to submit, which could lead to flaky tests.
Hopefully this makes them less flaky.

@taquitos taquitos left a comment

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.

🎈🐐
download-12

…every test

I've noticed sometimes tests start with some receipts that are pending to submit, which could lead to flaky tests.
Hopefully this makes them less flaky.
@NachoSoto NachoSoto force-pushed the integration-tests-receipt-url branch from c9db53a to fd6e9a1 Compare June 7, 2022 22:55
@NachoSoto

Copy link
Copy Markdown
Contributor Author

cc @aboedo

@NachoSoto NachoSoto merged commit 0508253 into main Jun 7, 2022
@NachoSoto NachoSoto deleted the integration-tests-receipt-url branch June 7, 2022 23:55
NachoSoto added a commit that referenced this pull request Jun 14, 2022
…ery test

Equivalent to #1671 but for unit tests.

In iOS 16 (as of beta 1), the receipt persists across tests, despite the use of `SKTestSession.resetToDefaultState`.
This might also help with flaky tests pre-iOS 16 too.

Also note that I fixed this method in `BaseBackendIntegrationTests`. Using `URL.absoluteString` was incorrect there, so the file was probably never deleted.
NachoSoto added a commit that referenced this pull request Jun 14, 2022
…ery test

Equivalent to #1671 but for unit tests.

In iOS 16 (as of beta 1), the receipt persists across tests, despite the use of `SKTestSession.resetToDefaultState`.
This might also help with flaky tests pre-iOS 16 too.

Also note that I fixed this method in `BaseBackendIntegrationTests`. Using `URL.absoluteString` was incorrect there, so the file was probably never deleted.
NachoSoto added a commit that referenced this pull request Jun 14, 2022
…ery test (#1700)

Equivalent to #1671 but for unit tests.

In iOS 16 (as of beta 1), the receipt persists across tests, despite the use of `SKTestSession.resetToDefaultState`.
This might also help with flaky tests pre-iOS 16 too.

Also note that I fixed this method in `BaseBackendIntegrationTests`. Using `URL.absoluteString` was incorrect there, so the file was probably never deleted.

I filed a feedback (FB10252944) for this:
![Screen Shot 2022-06-14 at 11 27 13](https://user-images.githubusercontent.com/685609/173662482-edae8bb9-48a2-432a-9823-c07a46e8861a.png)
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