Skip to content

Failed assertions when #2498

Closed
Closed
@bkonyi

Description

@bkonyi

When attempting to do a pub package roll into the Flutter framework, we've started encountering failures due to assertions added in 935b8b0.

In particular, we're seeing this assertion fail in all three tests referencing flutter/dev/automated_tests/flutter_test/trivial_widget_test.dart in flutter/packages/flutter_tools/test/integration.shard/test_test.dart:

              package:test_api/src/backend/group.dart': Failed assertion: line 73 pos 12: '<optimized out>': is not true.
              dart:core-patch/errors_patch.dart 67:4                _AssertionError._doThrowNew
              dart:core-patch/errors_patch.dart 49:5                _AssertionError._throwNew
              package:test_api/src/backend/group.dart 73:12         new Group
              package:test_api/src/backend/group.dart 95:12         Group.filter
              package:test_core/src/runner/runner_suite.dart 66:26  RunnerSuite.filter
              package:test_core/src/runner.dart 283:34              Runner._loadSuites.<fn>.<fn>
              package:test_core/src/runner/load_suite.dart 185:26   LoadSuite.changeSuite.<fn>.<fn>
              dart:async/zone.dart 1525:13                          _rootRun
              dart:async/zone.dart 1422:19                          _CustomZone.run
              dart:async/zone.dart 1321:7                           _CustomZone.runGuarded
              package:test_core/src/runner/load_suite.dart 184:12   LoadSuite.changeSuite.<fn>
              dart:async/zone.dart 1538:47                          _rootRunUnary
              dart:async/zone.dart 1429:19                          _CustomZone.runUnary
              dart:async/future_impl.dart 951:45                    Future._propagateToListeners.handleValueCallback
              dart:async/future_impl.dart 980:13                    Future._propagateToListeners
              dart:async/future_impl.dart 714:7                     Future._complete
              dart:async/future_impl.dart 116:12                    _SyncCompleter.complete
              package:test_core/src/runner/load_suite.dart 108:19   new LoadSuite.<fn>.<fn>

Full logs are here.

I'm going to pin the dependency on package:test_api to 0.7.4 prevent the latest change from being pulled in.

FYI @DanTup @jakemac53

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