mirror of
https://github.com/flutter/flutter
synced 2024-10-12 19:23:02 +00:00
Remove a redundant test case in the flutter_tools create_test (#89872)
This commit is contained in:
parent
738430cad7
commit
fad5e4cf89
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue