From fad5e4cf892bcf65ad3f1cde092cfb9671c3de99 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Mon, 13 Sep 2021 13:37:07 -0700 Subject: [PATCH] Remove a redundant test case in the flutter_tools create_test (#89872) --- .../commands.shard/permeable/create_test.dart | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/packages/flutter_tools/test/commands.shard/permeable/create_test.dart b/packages/flutter_tools/test/commands.shard/permeable/create_test.dart index 10d7f34fa07..f0275e92c0e 100755 --- a/packages/flutter_tools/test/commands.shard/permeable/create_test.dart +++ b/packages/flutter_tools/test/commands.shard/permeable/create_test.dart @@ -1733,31 +1733,6 @@ void main() { }, ); - testUsingContext( - 'invokes pub online when offline not requested', - () async { - Cache.flutterRoot = '../..'; - - final CreateCommand command = CreateCommand(); - final CommandRunner runner = createTestCommandRunner(command); - - await runner.run(['create', '--pub', projectDir.path]); - expect(loggingProcessManager.commands.first, contains(matches(r'dart-sdk[\\/]bin[\\/]dart'))); - expect(loggingProcessManager.commands.first, isNot(contains('--offline'))); - }, - overrides: { - 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,