diff --git a/packages/flutter_tools/test/src/context.dart b/packages/flutter_tools/test/src/context.dart index ebbcab54bc1..4176e8ee0e3 100644 --- a/packages/flutter_tools/test/src/context.dart +++ b/packages/flutter_tools/test/src/context.dart @@ -114,10 +114,7 @@ void testUsingContext( HttpClient: () => FakeHttpClient.any(), IOSSimulatorUtils: () => const NoopIOSSimulatorUtils(), OutputPreferences: () => OutputPreferences.test(), - Logger: () => BufferLogger( - terminal: globals.terminal, - outputPreferences: globals.outputPreferences, - ), + Logger: () => BufferLogger.test(), OperatingSystemUtils: () => FakeOperatingSystemUtils(), PersistentToolState: () => buildPersistentToolState(globals.fs), Usage: () => TestUsage(),