Skip to content

Commit

Permalink
Increase the load suite timeout
Browse files Browse the repository at this point in the history
Closes #390
  • Loading branch information
nex3 committed Nov 7, 2017
1 parent 7213fe6 commit 48c92e0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/src/runner/load_suite.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ import 'load_exception.dart';
import 'plugin/environment.dart';
import 'runner_suite.dart';

/// The timeout for loading a test suite.
///
/// We want this to be long enough that even a very large application being
/// compiled with dart2js doesn't trigger it, but short enough that it fires
/// before the host kills it. For example, Google's Forge service has a
/// 15-minute timeout.
final _timeout = new Duration(minutes: 12);

/// A [Suite] emitted by a [Loader] that provides a test-like interface for
/// loading a test file.
///
Expand Down Expand Up @@ -129,7 +137,7 @@ class LoadSuite extends Suite implements RunnerSuite {
new Group.root([
new LocalTest(
name,
new Metadata(timeout: new Timeout(new Duration(minutes: 5))),
new Metadata(timeout: new Timeout(_timeout)),
body)
]),
path: path,
Expand Down

0 comments on commit 48c92e0

Please sign in to comment.