One more timeout. Centralize definitions. (#12970)
This commit is contained in:
committed by
GitHub
parent
e3d5cbc929
commit
c936aa8cd4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user