One more timeout. Centralize definitions. (#12970)

This commit is contained in:
Mikkel Nygaard Ravn
2017-11-10 15:56:17 +01:00
committed by GitHub
parent e3d5cbc929
commit c936aa8cd4
4 changed files with 20 additions and 18 deletions

View File

@@ -96,4 +96,11 @@ Future<String> createProject(Directory temp) async {
final CommandRunner<Null> runner = createTestCommandRunner(command);
await runner.run(<String>['create', '--no-pub', projectPath]);
return projectPath;
}
}
/// Test case timeout for tests involving remote calls to `pub get` or similar.
const Timeout allowForRemotePubInvocation = const Timeout.factor(10.0);
/// Test case timeout for tests involving creating a Flutter project with
/// `--no-pub`. Use [allowForRemotePubInvocation] when creation involves `pub`.
const Timeout allowForCreateFlutterProject = const Timeout.factor(2.0);