Index: runtime/observatory/tests/service/get_object_store_rpc_test.dart |
diff --git a/runtime/observatory/tests/service/get_object_store_rpc_test.dart b/runtime/observatory/tests/service/get_object_store_rpc_test.dart |
index a15abca78cf0cf906944fd8eba47d4fdce3c1089..5582895bcd1847520f945a578f6e544df811bfb0 100644 |
--- a/runtime/observatory/tests/service/get_object_store_rpc_test.dart |
+++ b/runtime/observatory/tests/service/get_object_store_rpc_test.dart |
@@ -36,9 +36,10 @@ var tests = [ |
// Sanity check. |
expect(object_store.fields.length, greaterThanOrEqualTo(1)); |
// Checking Closures. |
- expect(object_store.fields.singleWhere(isClosureFunctionsList), isNotNull); |
- expect(object_store.fields.singleWhere(isClosureFunctionsList).value.isList, |
- isTrue); |
+ var single = object_store.fields.singleWhere(isClosureFunctionsList); |
+ expect(single, isNotNull); |
+ var value = single.value as Instance; |
+ expect(value.isList, isTrue); |
} |
]; |