[flutter_tools] cleanup iOS test (#59999)

The test needs to look up HOME, but one wasn't provided. This would end up using the real home directory, crashing on windows
This commit is contained in:
Jonah Williams
2020-06-22 17:04:17 -07:00
committed by GitHub
parent 8e9b78728f
commit a734693ff5

View File

@@ -47,7 +47,7 @@ void main() {
environment: <String, String>{},
operatingSystem: 'macos',
);
fileSystem = MemoryFileSystem();
fileSystem = MemoryFileSystem.test();
fsUtils = FileSystemUtils(fileSystem: fileSystem, platform: osx);
});
@@ -458,6 +458,12 @@ void main() {
overrides: <Type, Generator>{
ProcessManager: () => mockProcessManager,
FileSystem: () => fileSystem,
Platform: () => FakePlatform(
operatingSystem: 'macos',
environment: <String, String>{
'HOME': '/'
},
),
});
testUsingContext('unified logging with app name', () async {