Skip to content

[in_app_purchase_storekit] InAppPurchase2PluginTests purchase tests flakily time out on iOS #193451

Closed
flutter/packages
#13213

Description

@elliette

Summary

On Mac_arm64 ios_platform_tests_shard_3, the native test step of in_app_purchase_storekit sometimes fails because most of the InAppPurchase2PluginTests (StoreKit2) suite times out. The SKTestSession purchase never completes, so the purchase expectation is never fulfilled and the test times out after 5 seconds. In a single run, 18 tests failed this way.

It happens on both the master and stable channels, in presubmit and postsubmit. Retrying on the same commit passes. None of the commits it failed on touch in_app_purchase_storekit.

This may be the same bug as #184678 or #184678. Both show the same unfulfilled "Purchase request should succeed" expectation.

Failure signature

InAppPurchaseStoreKit2PluginTests.swift:222: error: -[RunnerTests.InAppPurchase2PluginTests testSuccessfulPurchase] :
    Asynchronous wait failed: Exceeded timeout of 5 seconds, with unfulfilled expectations: "Purchase request should succeed".
InAppPurchaseStoreKit2PluginTests.swift:424: error: -[RunnerTests.InAppPurchase2PluginTests testRestoreProductSuccess] :
    Asynchronous wait failed: Exceeded timeout of 5 seconds, with unfulfilled expectations: "Purchase request should succeed".
...
** TEST FAILED **

Regex to find occurrences:

InAppPurchase2PluginTests test\w+\] : Asynchronous wait failed

Occurrences

Postsubmit: failed, then passed on retry on the same commit

Failed build Date Commit Log
stable #4707 2026-09-21 flutter/packages@ac3e77c (flutter/packages#12944) raw
stable #4628 2026-09-08 flutter/packages@a26b623 (flutter/packages#12789) raw

Presubmit (master)

Build Date PR Log
#31039 2026-09-25 flutter/packages#13017 (Flutter roll) raw
#30948 2026-09-22 flutter/packages#12977 (Flutter roll) raw
#30903 2026-09-21 flutter/packages#10753 (CI gold testing) raw

Activity

  1. added
    P1High-priority issues at the top of the work list
    and removed on Sep 28, 2026
  2. added
    platform-iosiOS applications specifically
    packageflutter/packages repository. See also p: labels.
    fyi-ecosystemFor the attention of Ecosystem team
    team-iosOwned by iOS platform team
    on Sep 28, 2026
  3. Piinks commented on Sep 29, 2026

    @Piinks
    Contributor

    This flake has been disabled

  4. github-actions commented on Oct 28, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  5. locked as resolved and limited conversation to collaborators on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listp: in_app_purchasePlugin for in-app purchasepackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions