Skip to content

Commit

Permalink
Fix the request data for purchase tests (#427)
Browse files Browse the repository at this point in the history
* Attempt to fix periodically failing tests (#423)

* Attempt to fix periodically failing tests

* Fix

* Fix the request data for purchase tests

* Fixed test error

---------

Co-authored-by: Surik Sarkisyan <[email protected]>
Co-authored-by: vanilevsky <[email protected]>
  • Loading branch information
3 people authored Dec 26, 2023
1 parent bbd6fc0 commit 317df42
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions IntegrationTests/QNAPIClientIntegrationTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,12 @@ - (void)setUp {
requestData[@"purchase"] = @{
@"country": @"USA",
@"currency": @"USD",
@"experiment": @{},
@"original_transaction_id": @"",
@"period_number_of_units": @1,
@"period_unit": @2,
@"period_number_of_units": @"1",
@"period_unit": @"2",
@"product": @"apple_monthly",
@"product_id": @"test_monthly",
@"transaction_id": @2000000305530406,
@"transaction_id": @"2000000305530406",
@"value": @"4.99",
};

Expand Down Expand Up @@ -216,7 +215,7 @@ - (void)testPurchaseError {

// when
[client purchaseRequestWith:self.purchaseData completion:^(NSDictionary * _Nullable res, NSError * _Nullable error) {
[self assertProjectNotFoundError:res error:error];
[self assertAccessDeniedError:res error:error];
[completionExpectation fulfill];
}];

Expand Down

0 comments on commit 317df42

Please sign in to comment.