Unverified Commit a734693f authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

[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
parent 8e9b7872
......@@ -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 {
......
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