Skip to content

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

@zanderso

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.

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