enable lint unnecessary_const (#19342)
This commit is contained in:
committed by
GitHub
parent
d10e46ea65
commit
cc1cf13eec
@@ -76,7 +76,7 @@ Matcher throwsToolExit({int exitCode, String message}) {
|
||||
}
|
||||
|
||||
/// Matcher for [ToolExit]s.
|
||||
const Matcher isToolExit = const isInstanceOf<ToolExit>();
|
||||
const Matcher isToolExit = isInstanceOf<ToolExit>();
|
||||
|
||||
/// Matcher for functions that throw [ProcessExit].
|
||||
Matcher throwsProcessExit([dynamic exitCode]) {
|
||||
@@ -86,7 +86,7 @@ Matcher throwsProcessExit([dynamic exitCode]) {
|
||||
}
|
||||
|
||||
/// Matcher for [ProcessExit]s.
|
||||
const Matcher isProcessExit = const isInstanceOf<ProcessExit>();
|
||||
const Matcher isProcessExit = isInstanceOf<ProcessExit>();
|
||||
|
||||
/// Creates a flutter project in the [temp] directory using the
|
||||
/// [arguments] list if specified, or `--no-pub` if not.
|
||||
@@ -101,8 +101,8 @@ Future<String> createProject(Directory temp, {List<String> arguments}) async {
|
||||
}
|
||||
|
||||
/// Test case timeout for tests involving remote calls to `pub get` or similar.
|
||||
const Timeout allowForRemotePubInvocation = const Timeout.factor(10.0);
|
||||
const Timeout allowForRemotePubInvocation = 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(3.0);
|
||||
const Timeout allowForCreateFlutterProject = Timeout.factor(3.0);
|
||||
|
||||
@@ -113,7 +113,7 @@ void testUsingContext(String description, dynamic testMethod(), {
|
||||
},
|
||||
);
|
||||
});
|
||||
}, timeout: timeout != null ? timeout : const Timeout(const Duration(seconds: 60)),
|
||||
}, timeout: timeout != null ? timeout : const Timeout(Duration(seconds: 60)),
|
||||
testOn: testOn, skip: skip);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user