Skip to content

Commit 5f1949c

Browse files
author
Matteo Crippa
committed
rollback test for new extractor
1 parent bd25ab0 commit 5f1949c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/flutter_tools/test/protocol_discovery_test.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ void main() {
6666
expect('$uri', 'http://127.0.0.1:3333');
6767
});
6868

69+
testUsingContext('discovers uri even if logs has ESC Ascii', () async {
70+
initialize();
71+
logReader.addLine('Observatory listening on http://127.0.0.1:3333 \x1b[');
72+
final Uri uri = await discoverer.uri;
73+
expect(uri.port, 3333);
74+
expect('$uri', 'http://127.0.0.1:3333');
75+
});
76+
6977
testUsingContext('uri throws if logs produce bad line', () async {
7078
initialize();
7179
Timer.run(() {

0 commit comments

Comments
 (0)