diff --git a/packages/flutter_driver/lib/src/driver.dart b/packages/flutter_driver/lib/src/driver.dart index 59fd3b33dfb..aaedbd12dc3 100644 --- a/packages/flutter_driver/lib/src/driver.dart +++ b/packages/flutter_driver/lib/src/driver.dart @@ -312,7 +312,7 @@ void restoreVmServiceConnectFunction() { /// /// Times out after 30 seconds. Future _waitAndConnect(String url) async { - Stopwatch timer = new Stopwatch(); + Stopwatch timer = new Stopwatch()..start(); Future attemptConnection() { return VMServiceClient.connect(url) .catchError((dynamic e) async {