Unverified Commit fad5e4cf authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

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

parent 738430ca
...@@ -1733,31 +1733,6 @@ void main() { ...@@ -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 { testUsingContext('can create a sample-based project', () async {
await _createAndAnalyzeProject( await _createAndAnalyzeProject(
projectDir, projectDir,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment