Skip to content

asset_bundle_test.dart fails on a late initialization error with some random seeds #140665

Description

@zanderso

From https://ci.chromium.org/ui/p/flutter/builders/prod/Linux%20tool_tests_general/15024/overview

00:19 +201: test/general.shard/asset_bundle_test.dart: AssetBundle.build flavors feature (setUpAll)                                                                                                    
00:19 +201 -1: test/general.shard/asset_bundle_test.dart: AssetBundle.build flavors feature (setUpAll) [E]                                                                                             
  LateInitializationError: Local 'platform' has not been initialized.
  dart:_internal                                    LateError._throwLocalNotInitialized
  test/general.shard/asset_bundle_test.dart 356:64  main.<fn>.<fn>.<fn>
  

To run this test again: /b/s/w/ir/x/w/flutter/bin/cache/dart-sdk/bin/dart test test/general.shard/asset_bundle_test.dart -p vm --plain-name 'AssetBundle.build flavors feature (setUpAll)'

It looks like the setUpAll() for the nested group can run before the setUp() for the containing group, which leads platform to be uninitialized.

Activity

  1. added
    P2Important issues not at the top of the work list
    triaged-toolTriaged by Flutter Tool team
    on Dec 27, 2023
  2. github-actions commented on Jan 17, 2024

    @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.

  3. locked as resolved and limited conversation to collaborators on Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listteam-toolOwned by Flutter Tool teamtriaged-toolTriaged by Flutter Tool team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions