From b7f918c92bff5a91003aaf6d3f6a6cc808605fc8 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Sat, 24 Oct 2015 12:33:17 -0700 Subject: [PATCH] change how we specify test timeout --- packages/flutter_tools/test/init_test.dart | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/flutter_tools/test/init_test.dart b/packages/flutter_tools/test/init_test.dart index c10ceb6717..1b44b01f17 100644 --- a/packages/flutter_tools/test/init_test.dart +++ b/packages/flutter_tools/test/init_test.dart @@ -2,10 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// This test can take a while due to network requests. -@Timeout(const Duration(minutes: 2)) -library init_test; - import 'dart:io'; import 'package:args/command_runner.dart'; @@ -46,6 +42,8 @@ defineTests() { print(exec.stderr); } expect(exec.exitCode, 0); - }); + }, + // This test can take a while due to network requests. + timeout: new Timeout(new Duration(minutes: 2))); }); }