Index: runtime/observatory/tests/service/get_vm_timeline_rpc_test.dart |
diff --git a/runtime/observatory/tests/service/get_vm_timeline_rpc_test.dart b/runtime/observatory/tests/service/get_vm_timeline_rpc_test.dart |
index a1f48066be54dc5cf04e805bf307816b63ec94e6..3de30cb20b3dfe011d86602586859a56f634986c 100644 |
--- a/runtime/observatory/tests/service/get_vm_timeline_rpc_test.dart |
+++ b/runtime/observatory/tests/service/get_vm_timeline_rpc_test.dart |
@@ -46,6 +46,10 @@ void allEventsHaveIsolateNumber(List<Map> events) { |
// Skip VM category events which don't have an isolate. |
continue; |
} |
+ if (event['cat'] == 'API') { |
+ // Skip API category events which sometimes don't have an isolate. |
+ continue; |
+ } |
Map arguments = event['args']; |
expect(arguments, new isInstanceOf<Map>()); |
expect(arguments['isolateNumber'], new isInstanceOf<String>()); |