Skip to content

Commit 11371f6

Browse files
committed
Temporarily disable two flaky InAppPurchaseStoreTests test cases that call userIsEntitledToProduct.
1 parent 7bd2814 commit 11371f6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

WooCommerce/WooCommerceTests/UnitTests.xctestplan

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
"testTargets" : [
3131
{
3232
"skippedTests" : [
33+
"InAppPurchaseStoreTests\/test_user_is_entitled_to_product_returns_false_when_not_entitled()",
34+
"InAppPurchaseStoreTests\/test_user_is_entitled_to_product_returns_true_when_entitled()",
3335
"StripeCardReaderIntegrationTests"
3436
],
3537
"target" : {

WooCommerce/WooCommerceTests/Yosemite/InAppPurchaseStoreTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ final class InAppPurchaseStoreTests: XCTestCase {
175175
XCTAssert(error is WordPressApiError)
176176
}
177177

178+
// TODO: re-enable the test case when it can pass consistently. More details:
179+
// https://github.com/woocommerce/woocommerce-ios/pull/8256#pullrequestreview-1199236279
178180
func test_user_is_entitled_to_product_returns_false_when_not_entitled() throws {
179181
// Given
180182

@@ -191,6 +193,8 @@ final class InAppPurchaseStoreTests: XCTestCase {
191193
XCTAssertFalse(isEntitled)
192194
}
193195

196+
// TODO: re-enable the test case when it can pass consistently. More details:
197+
// https://github.com/woocommerce/woocommerce-ios/pull/8256#pullrequestreview-1199236279
194198
func test_user_is_entitled_to_product_returns_true_when_entitled() throws {
195199
// Given
196200
try storeKitSession.buyProduct(productIdentifier: sampleProductID)

0 commit comments

Comments
 (0)