From bc04c53231a932531d6478c6c4d2242dbb350757 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 26 Jan 2017 14:24:04 -0800 Subject: [PATCH] Fix VMIsolateRef type declaration (#7666) Fixes https://github.com/flutter/flutter/issues/7661 --- dev/devicelab/lib/framework/runner.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev/devicelab/lib/framework/runner.dart b/dev/devicelab/lib/framework/runner.dart index b974c62a3a..de9738dfb6 100644 --- a/dev/devicelab/lib/framework/runner.dart +++ b/dev/devicelab/lib/framework/runner.dart @@ -59,7 +59,7 @@ Future> runTask(String taskName, { bool silent: false }) as String waitingFor = 'connection'; try { - VMIsolate isolate = await _connectToRunnerIsolate(vmServicePort); + VMIsolateRef isolate = await _connectToRunnerIsolate(vmServicePort); waitingFor = 'task completion'; Map taskResult = await isolate.invokeExtension('ext.cocoonRunTask').timeout(taskTimeoutWithGracePeriod); @@ -80,7 +80,7 @@ Future> runTask(String taskName, { bool silent: false }) as } } -Future _connectToRunnerIsolate(int vmServicePort) async { +Future _connectToRunnerIsolate(int vmServicePort) async { String url = 'ws://localhost:$vmServicePort/ws'; DateTime started = new DateTime.now(); @@ -99,7 +99,7 @@ Future _connectToRunnerIsolate(int vmServicePort) async { // Look up the isolate. VMServiceClient client = new VMServiceClient.connect(url); VM vm = await client.getVM(); - VMIsolate isolate = vm.isolates.single; + VMIsolateRef isolate = vm.isolates.single; String response = await isolate.invokeExtension('ext.cocoonRunnerReady'); if (response != 'ready') throw 'not ready yet'; return isolate;