Index: runtime/observatory/tests/service/get_version_rpc_test.dart |
diff --git a/runtime/observatory/tests/service/vm_test.dart b/runtime/observatory/tests/service/get_version_rpc_test.dart |
similarity index 54% |
copy from runtime/observatory/tests/service/vm_test.dart |
copy to runtime/observatory/tests/service/get_version_rpc_test.dart |
index 1e58d9ba18a190d7b6ac16437514902d4e31f2c2..92b8c06050fe9974bdff9f39a4b6f483a5beae39 100644 |
--- a/runtime/observatory/tests/service/vm_test.dart |
+++ b/runtime/observatory/tests/service/get_version_rpc_test.dart |
@@ -5,17 +5,18 @@ |
import 'package:observatory/service_io.dart'; |
import 'package:unittest/unittest.dart'; |
+ |
import 'test_helper.dart'; |
var tests = [ |
- |
-(Isolate isolate) { |
- VM vm = isolate.owner; |
- expect(vm.targetCPU, isNotNull); |
- expect(vm.architectureBits == 32 || |
- vm.architectureBits == 64, isTrue); |
-}, |
- |
+ (VM vm) async { |
+ var result = await vm.invokeRpcNoUpgrade('getVersion', {}); |
+ expect(result['type'], equals('Version')); |
+ expect(result['major'], equals(1)); |
+ expect(result['minor'], equals(0)); |
+ expect(result['_privateMajor'], equals(0)); |
+ expect(result['_privateMinor'], equals(0)); |
+ }, |
]; |
-main(args) => runIsolateTests(args, tests); |
+main(args) async => runVMTests(args, tests); |