Commit b7f918c9 authored by Devon Carew's avatar Devon Carew

change how we specify test timeout

parent 98d61fc1
...@@ -2,10 +2,6 @@ ...@@ -2,10 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // 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 'dart:io';
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
...@@ -46,6 +42,8 @@ defineTests() { ...@@ -46,6 +42,8 @@ defineTests() {
print(exec.stderr); print(exec.stderr);
} }
expect(exec.exitCode, 0); expect(exec.exitCode, 0);
}); },
// This test can take a while due to network requests.
timeout: new Timeout(new Duration(minutes: 2)));
}); });
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment