Remove a redundant test case in the flutter_tools create_test (#89872)

This commit is contained in:
Jason Simmons 2021-09-13 13:37:07 -07:00 committed by GitHub
parent 738430cad7
commit fad5e4cf89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1733,31 +1733,6 @@ void main() {
},
);
testUsingContext(
'invokes pub online when offline not requested',
() async {
Cache.flutterRoot = '../..';
final CreateCommand command = CreateCommand();
final CommandRunner<void> runner = createTestCommandRunner(command);
await runner.run(<String>['create', '--pub', projectDir.path]);
expect(loggingProcessManager.commands.first, contains(matches(r'dart-sdk[\\/]bin[\\/]dart')));
expect(loggingProcessManager.commands.first, isNot(contains('--offline')));
},
overrides: <Type, Generator>{
ProcessManager: () => loggingProcessManager,
Pub: () => Pub(
fileSystem: globals.fs,
logger: globals.logger,
processManager: globals.processManager,
usage: globals.flutterUsage,
botDetector: globals.botDetector,
platform: globals.platform,
),
},
);
testUsingContext('can create a sample-based project', () async {
await _createAndAnalyzeProject(
projectDir,