[fuchsia] Fix isolate filter (#30458)

This commit is contained in:
Zachary Anderson
2019-04-03 21:14:37 -07:00
committed by GitHub
parent 9fe6be8a65
commit 39ebae2bab
3 changed files with 7 additions and 24 deletions

View File

@@ -241,7 +241,7 @@ void main() {
'type': '@Isolate',
'fixedId': 'true',
'id': 'isolates/3',
'name': 'file://flutterBinary2:main()',
'name': 'flutterBinary.cmx',
'number': '3',
},
<String, dynamic>{
@@ -268,13 +268,9 @@ void main() {
await DartVm.connect(Uri.parse('http://whatever.com/ws'));
expect(vm, isNot(null));
final List<IsolateRef> matchingFlutterIsolates =
await vm.getMainIsolatesByPattern('flutterBinary');
await vm.getMainIsolatesByPattern('flutterBinary.cmx');
expect(matchingFlutterIsolates.length, 1);
final List<IsolateRef> allFlutterIsolates =
await vm.getMainIsolatesByPattern('');
expect(allFlutterIsolates.length, 2);
final List<IsolateRef> allIsolates = await vm.getMainIsolatesByPattern('',
includeNonFlutterIsolates: true);
final List<IsolateRef> allIsolates = await vm.getMainIsolatesByPattern('');
expect(allIsolates.length, 4);
});