Skip to content

in checked mode, if "flutter test" experiences a post-test engine crash, it triggers a failure in the test package #7653

@Hixie

Description

@Hixie
'package:test/src/runner/live_suite_controller.dart': Failed assertion: line 116: '_active == null': is not true.
dart:core                                               _AssertionError._throwNew
package:test/src/runner/live_suite_controller.dart 116  LiveSuiteController.reportLiveTest
package:test/src/runner/engine.dart 348                 Engine._runLiveTest.<async>

This is an unexpected error. Please file an issue at http://github.com/dart-lang/test
with the stack trace and instructions for reproducing the error.
'package:test/src/runner/live_suite_controller.dart': Failed assertion: line 116: '_active == null': is not true.

dart:core                                                         _AssertionError._throwNew
package:test/src/runner/live_suite_controller.dart 116            LiveSuiteController.reportLiveTest
package:test/src/runner/engine.dart 348                           Engine._runLiveTest.<async>
===== asynchronous gap ===========================
dart:async                                                        _Completer.completeError
package:test/src/runner/engine.dart 368                           Engine._runLiveTest.<async>
===== asynchronous gap ===========================
dart:async                                                        Future.Future.microtask
package:test/src/runner/engine.dart                               Engine._runLiveTest
package:test/src/runner/engine.dart 305                           Engine._runGroup.<async>
===== asynchronous gap ===========================
dart:async                                                        Future.Future.microtask
package:test/src/runner/engine.dart                               Engine._runGroup
package:test/src/runner/engine.dart 300                           Engine._runGroup.<async>
dart:async                                                        _SyncCompleter.complete
package:test/src/runner/engine.dart 323                           Engine._runGroup.<async>
dart:async                                                        _SyncCompleter.complete
package:test/src/runner/engine.dart 358                           Engine._runLiveTest.<async>
===== asynchronous gap ===========================
dart:async                                                        _asyncThenWrapperHelper
package:test/src/runner/engine.dart                               Engine._runGroup
package:test/src/runner/engine.dart 263                           Engine.run.<fn>.<fn>.<async>.<fn>.<async>
===== asynchronous gap ===========================
dart:async                                                        Future.Future.sync
package:pool/pool.dart 120                                        Pool.withResource.<fn>
===== asynchronous gap ===========================
dart:async                                                        _Future.then
package:pool/pool.dart 119                                        Pool.withResource
package:test/src/runner/engine.dart 261                           Engine.run.<fn>.<fn>.<async>
dart:async                                                        _SyncCompleter.complete
package:test/src/runner/engine.dart 456                           Engine._addLoadSuite.<async>
dart:async                                                        _SyncCompleter.complete
package:test/src/runner/load_suite.dart 45                        LoadSuite.suite.suite_async_body>
dart:async                                                        _SyncCompleter.complete
package:test/src/runner/load_suite.dart 83                        LoadSuite.LoadSuite.<fn>.<fn>.<async>
dart:async                                                        _SyncCompleter.complete
package:test/src/runner/loader.dart 158                           Loader.loadFile.<loadFile_async_gen_body>.<fn>.<async>
dart:async                                                        _SyncCompleter.complete
package:test/src/runner/plugin/platform.dart 65                   PlatformPlugin.load.<async>
dart:async                                                        _SyncCompleter.complete
package:test/src/runner/plugin/platform_helpers.dart 94           deserializeSuite.<async>
===== asynchronous gap ===========================
dart:async                                                        _asyncThenWrapperHelper
package:test/src/runner/engine.dart                               Engine.run.<fn>.<fn>
dart:async                                                        Future.Future.sync
package:test/src/runner/engine.dart 245                           Engine.run.<fn>
===== asynchronous gap ===========================
dart:async                                                        _StreamImpl.listen
package:test/src/runner/engine.dart 241                           Engine.run
package:test/src/runner.dart 125                                  Runner.run.<async>
===== asynchronous gap ===========================
dart:async                                                        Future.Future.microtask
package:test/src/runner.dart                                      Runner.run
package:test/src/executable.dart 174                              main.<async>
===== asynchronous gap ===========================
dart:async                                                        Future.Future.microtask
package:test/src/executable.dart                                  main

cc @nex3

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: tests"flutter test", flutter_test, or one of our testsc: contributor-productivityTeam-specific productivity, code health, technical debt.c: crashStack traces logged to the console

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions