Some test cleanup for flutter_tools. (#90227)
This commit is contained in:
@@ -148,7 +148,6 @@ Matcher containsIgnoringWhitespace(String toSearch) {
|
||||
@isTest
|
||||
void test(String description, FutureOr<void> Function() body, {
|
||||
String? testOn,
|
||||
Timeout? timeout,
|
||||
dynamic skip,
|
||||
List<String>? tags,
|
||||
Map<String, dynamic>? onPlatform,
|
||||
@@ -162,12 +161,14 @@ void test(String description, FutureOr<void> Function() body, {
|
||||
});
|
||||
return body();
|
||||
},
|
||||
timeout: timeout,
|
||||
skip: skip,
|
||||
tags: tags,
|
||||
onPlatform: onPlatform,
|
||||
retry: retry,
|
||||
testOn: testOn,
|
||||
// We don't support "timeout"; see ../../dart_test.yaml which
|
||||
// configures all tests to have a 15 minute timeout which should
|
||||
// definitely be enough.
|
||||
);
|
||||
}
|
||||
|
||||
@@ -182,7 +183,6 @@ void test(String description, FutureOr<void> Function() body, {
|
||||
@isTest
|
||||
void testWithoutContext(String description, FutureOr<void> Function() body, {
|
||||
String? testOn,
|
||||
Timeout? timeout,
|
||||
dynamic skip,
|
||||
List<String>? tags,
|
||||
Map<String, dynamic>? onPlatform,
|
||||
@@ -194,12 +194,14 @@ void testWithoutContext(String description, FutureOr<void> Function() body, {
|
||||
contextKey: const _NoContext(),
|
||||
});
|
||||
},
|
||||
timeout: timeout,
|
||||
skip: skip,
|
||||
tags: tags,
|
||||
onPlatform: onPlatform,
|
||||
retry: retry,
|
||||
testOn: testOn,
|
||||
// We don't support "timeout"; see ../../dart_test.yaml which
|
||||
// configures all tests to have a 15 minute timeout which should
|
||||
// definitely be enough.
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -62,7 +62,6 @@ void testUsingContext(
|
||||
Map<Type, Generator> overrides = const <Type, Generator>{},
|
||||
bool initializeFlutterRoot = true,
|
||||
String testOn,
|
||||
Timeout timeout,
|
||||
bool skip, // should default to `false`, but https://github.com/dart-lang/test/issues/545 doesn't allow this
|
||||
}) {
|
||||
if (overrides[FileSystem] != null && overrides[ProcessManager] == null) {
|
||||
@@ -167,7 +166,10 @@ void testUsingContext(
|
||||
// BotDetector implementation in the overrides.
|
||||
BotDetector: overrides[BotDetector] ?? () => const FakeBotDetector(true),
|
||||
});
|
||||
}, testOn: testOn, skip: skip, timeout: timeout);
|
||||
}, testOn: testOn, skip: skip);
|
||||
// We don't support "timeout"; see ../../dart_test.yaml which
|
||||
// configures all tests to have a 15 minute timeout which should
|
||||
// definitely be enough.
|
||||
}
|
||||
|
||||
void _printBufferedErrors(AppContext testContext) {
|
||||
|
||||
Reference in New Issue
Block a user