Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add full Swift concurrency support with Sendable requirements #92

Merged
merged 12 commits into from
Dec 27, 2024
Prev Previous commit
Next Next commit
Update integration tests
  • Loading branch information
ns-vasilev committed Dec 26, 2024
commit d841af82a5ed079d3c56e38b66c43477d101181a
6 changes: 3 additions & 3 deletions Tests/IntegrationTests/Tests/StoreProductTests.swift
Original file line number Diff line number Diff line change
@@ -34,14 +34,14 @@
let expectation = XCTestExpectation(description: "Purchase a product")

// when
let products: [StoreProduct] = try await withCheckedThrowingContinuation { _ in
let products: [StoreProduct] = try await withCheckedThrowingContinuation { continuation in
provider.fetch(productIDs: [String.productID], requestID: UUID().uuidString) { result in
switch result {
case let .success(skProducts):
let products = skProducts.map { StoreProduct($0) }
completion.resume(returning: products)
continuation.resume(returning: products)
case .failure:
completion.resume(returning: [])
continuation.resume(returning: [])

Check warning on line 44 in Tests/IntegrationTests/Tests/StoreProductTests.swift

Codecov / codecov/patch

Tests/IntegrationTests/Tests/StoreProductTests.swift#L44

Added line #L44 was not covered by tests
}
expectation.fulfill()
}
Loading