Unverified Commit 25b33a8c authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Fake locale in doctor_test (#44878)

parent e57ab1f2
...@@ -29,7 +29,10 @@ import '../../src/common.dart'; ...@@ -29,7 +29,10 @@ import '../../src/common.dart';
import '../../src/context.dart'; import '../../src/context.dart';
import '../../src/testbed.dart'; import '../../src/testbed.dart';
final Generator _kNoColorOutputPlatform = () => FakePlatform.fromPlatform(const LocalPlatform())..stdoutSupportsAnsi = false; final Generator _kNoColorOutputPlatform = () => FakePlatform.fromPlatform(const LocalPlatform())
..localeName = 'en_US.UTF-8'
..stdoutSupportsAnsi = false;
final Map<Type, Generator> noColorTerminalOverride = <Type, Generator>{ final Map<Type, Generator> noColorTerminalOverride = <Type, Generator>{
Platform: _kNoColorOutputPlatform, Platform: _kNoColorOutputPlatform,
}; };
...@@ -528,7 +531,7 @@ void main() { ...@@ -528,7 +531,7 @@ void main() {
expect(testLogger.statusText, equals( expect(testLogger.statusText, equals(
'Doctor summary (to see all details, run flutter doctor -v):\n' 'Doctor summary (to see all details, run flutter doctor -v):\n'
'[!] Flutter (Channel unknown, v0.0.0, on fake OS name and version, locale en-US)\n' '[!] Flutter (Channel unknown, v0.0.0, on fake OS name and version, locale en_US.UTF-8)\n'
' ✗ version error\n\n' ' ✗ version error\n\n'
'! Doctor found issues in 1 category.\n' '! Doctor found issues in 1 category.\n'
)); ));
......
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