Index: runtime/observatory/tests/service/type_arguments_test.dart |
diff --git a/runtime/observatory/tests/service/type_arguments_test.dart b/runtime/observatory/tests/service/type_arguments_test.dart |
index bfa2f93c98272b8c17900999f4b0a3e7cb193c2b..dd10523ddba37731b0453405021cceda42ee52c8 100644 |
--- a/runtime/observatory/tests/service/type_arguments_test.dart |
+++ b/runtime/observatory/tests/service/type_arguments_test.dart |
@@ -31,8 +31,8 @@ var tests = [ |
greaterThanOrEqualTo(instantiatedTypeArgsList.length)); |
// Check that we can 'get' this object again. |
var firstType = allTypeArgsList[0]; |
- return isolate.getObject(firstType['id']).then((ServiceMap map) { |
- expect(firstType['name'], map['name']); |
+ return isolate.getObject(firstType.id).then((TypeArguments type) { |
+ expect(firstType.name, type.name); |
}); |
}); |
}), |