-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: tech-debtTechnical debt, code quality, testing, etc.Technical debt, code quality, testing, etc.team-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.Issues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Description
STEPS TO REPRODUCE
- Add
export FLUTTER_TOOL_ARGS=--enable-assertsto your.bashrc, or at least export it in your current shell. cd dev/devicelabfrom your flutter/flutter checkout.- run
flutter test.
EXPECTED RESULTS
Tests pass.
ACTUAL RESULTS
Many tests hit:
'package:': Failed assertion: line 168 pos 16: '<optimized out>': is not true.
[...]
package:flutter_tools/src/test/flutter_tester_device.dart 168:16 FlutterTesterTestDevice.start.<fn>
package:flutter_tools/src/test/flutter_tester_device.dart 359:39 FlutterTesterTestDevice._pipeStandardStreamsToConsole.<fn>
[...]
The given line is in FlutterTesterTestDevice.start:
_pipeStandardStreamsToConsole(
process: _process!,
reportVmServiceUri: (Uri detectedUri) async {
assert(!_gotProcessVmServiceUri.isCompleted); // <-- THIS ASSERTS
assert(debuggingOptions.hostVmServicePort == null ||
debuggingOptions.hostVmServicePort == detectedUri.port);Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: tech-debtTechnical debt, code quality, testing, etc.Technical debt, code quality, testing, etc.team-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.Issues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team