You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 04c946c
Browse filesBrowse the repository at this point in the historyBrowse files
Work towards flutter/flutter#193451
Disables the `in_app_purchase_storekit` flakes that manifested on the most recent flutter -> packages autoroll (see details at flutter/flutter#193451)
## Pre-Review Checklist
**Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.
[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
Copy file name to clipboardExpand all lines: packages/in_app_purchase/in_app_purchase_storekit/example/shared/RunnerTests/InAppPurchaseStoreKit2PluginTests.swift
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,15 @@ final class InAppPurchase2PluginTests: XCTestCase {
47
47
session.disableDialogs=false
48
48
}
49
49
50
+
/// Skips tests that make purchases through `SKTestSession`, because these
51
+
/// purchases sometimes never complete on CI.
52
+
///
53
+
/// These should be re-enabled once https://github.com/flutter/flutter/issues/193451
54
+
/// is fixed.
55
+
privatefuncskipFlakyPurchaseTest()throws{
56
+
throwXCTSkip("Test is flaky. See https://github.com/flutter/flutter/issues/193451")
57
+
}
58
+
50
59
functestCanMakePayments()throws{
51
60
letresult=tryplugin.canMakePayments()
52
61
XCTAssertTrue(result)
@@ -76,6 +85,7 @@ final class InAppPurchase2PluginTests: XCTestCase {
76
85
}
77
86
78
87
functestGetTransactions()asyncthrows{
88
+
tryskipFlakyPurchaseTest()
79
89
letpurchaseExpectation=self.expectation(description:"Purchase should succeed")
80
90
lettransactionExpectation=self.expectation(
81
91
description:"Getting transactions should succeed")
@@ -151,6 +161,7 @@ final class InAppPurchase2PluginTests: XCTestCase {
0 commit comments