Skip to content

Ineffective timeout in Chrome tests on Windows in case of crash #2515

@d-markey

Description

@d-markey

Hello,

for some reason, some tests are failing but they never timeout. For instance this one has been running for 256+ minutes:

Image

Seems to happen on Windows only. Tests were successful in Github actions (Linux).

To reproduce, you can checkout https://github.com/d-markey/squadron/ on a Windows box and run tests with .\tool\run_tests.bat /b.

I don't think the failure reason originates in Dart as they all passed in Linux Github actions (see https://github.com/d-markey/squadron/actions/runs/16087511233/job/45400455877). Also, Squadron comes with a test console available from https://d-markey.github.io/squadron/test-console/, which shows that Windows/Chrome and Windows/Edge crash on specific tests (namely "SHARED CHANNEL" and "SQUADRON WORKER - POOL"). But, they all pass on Windows/Firefox. I shall file a bug with Chromium.

However, the test runner doesn't detect that situation and never times out.

I'm running on the Dart runtime coming with the latest version of Flutter:

C:\> dart --version
Dart SDK version: 3.8.1 (stable) (Wed May 28 00:47:25 2025 -0700) on "windows_x64"

C:\ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.32.5, on Microsoft Windows [version 10.0.26100.4349], locale fr-FR)
[√] Windows Version (11 Professionnel 64-bit, 24H2, 2009)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.14.5)
[!] Android Studio (version 2021.1)
    X Unable to determine bundled Java version.
[!] Android Studio (version 2023.3)
    X Unable to find bundled Java version.
[√] Android Studio (version 2024.2)
[√] VS Code (version 1.101.2)
[√] Connected device (3 available)
[√] Network resources

! Doctor found issues in 2 categories.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions