Skip to content

ErrorUtils: added test to verify that PublicErrors can be catch'd as ErrorCode#1924

Merged
NachoSoto merged 1 commit into
mainfrom
public-error-test
Sep 22, 2022
Merged

ErrorUtils: added test to verify that PublicErrors can be catch'd as ErrorCode#1924
NachoSoto merged 1 commit into
mainfrom
public-error-test

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

This is a key part of how we document error handling in the SDK, so it's important that it's covered in a test.
The second test also verifies that this same error contains all the metadata.

This is a follow up to #1879.

…'d as `ErrorCode`

This is a key part of how we document error handling in the SDK, so it's important that it's covered in a test.
The second test also verifies that this same error contains all the metadata.

This is a follow up to #1879.
@NachoSoto NachoSoto added the test label Sep 21, 2022
@NachoSoto NachoSoto requested a review from a team September 21, 2022 18:02
@NachoSoto

NachoSoto commented Sep 21, 2022

Copy link
Copy Markdown
Contributor Author

I was about to rely on this for the implementation of CSDK-451, and realized I wasn't quite 100% sure this worked, even though it should.

Now we know we won't break this.

@NachoSoto NachoSoto merged commit 6874536 into main Sep 22, 2022
@NachoSoto NachoSoto deleted the public-error-test branch September 22, 2022 13:59
NachoSoto added a commit that referenced this pull request Sep 27, 2022
**This is an automatic release.**

### New Features
* 🚨 `StoreKit 2` is now enabled by default 🚨 (#1922) via NachoSoto
(@NachoSoto)
* Extracted `PurchasesType` and `PurchasesSwiftType` (#1912) via
NachoSoto (@NachoSoto)
### Bugfixes
* `StoreKit 1`: changed result of cancelled purchases to be consistent
with `StoreKit 2` (#1910) via NachoSoto (@NachoSoto)
* `PaymentQueueWrapper`: handle promotional purchase requests from App
Store when SK1 is disabled (#1901) via NachoSoto (@NachoSoto)
### Other Changes
* Fixed iOS 12 tests (#1936) via NachoSoto (@NachoSoto)
* `CacheableNetworkOperation`: fixed race condition in new test (#1932)
via NachoSoto (@NachoSoto)
* `BasePurchasesTests`: changed default back to SK1 (#1935) via
NachoSoto (@NachoSoto)
* `Logger`: refactored default `LogLevel` definition (#1934) via
NachoSoto (@NachoSoto)
* `AppleReceipt`: refactored declarations into nested types (#1933) via
NachoSoto (@NachoSoto)
* `Integration Tests`: relaunch tests when retrying failures (#1925) via
NachoSoto (@NachoSoto)
* `CircleCI`: downgraded release jobs to Xcode 13.x (#1927) via
NachoSoto (@NachoSoto)
* `ErrorUtils`: added test to verify that `PublicError`s can be
`catch`'d as `ErrorCode` (#1924) via NachoSoto (@NachoSoto)
* `StoreKitIntegrationTests`: print `AppleReceipt` data whenever
`verifyEntitlementWentThrough` fails (#1929) via NachoSoto (@NachoSoto)
* `OperationQueue`: log debug message when requests are found in cache
and skipped (#1926) via NachoSoto (@NachoSoto)
* `GetCustomerInfoAPI`: avoid making a request if there's any
`PostReceiptDataOperation` in progress (#1911) via NachoSoto
(@NachoSoto)
* `PurchaseTester`: allow HTTP requests and enable setting `ProxyURL`
(#1917) via NachoSoto (@NachoSoto)
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