Unverified Commit d31c250e authored by Christopher Fujino's avatar Christopher Fujino Committed by GitHub

[flutter_tools] Fix leaky test (#105927)

parent 712860d3
......@@ -145,12 +145,14 @@ void main() {
MemoryFileSystem fs;
Artifacts artifacts;
TestUsage usage;
FakeAnsiTerminal fakeTerminal;
setUpAll(() {
Cache.disableLocking();
});
setUp(() {
fakeTerminal = FakeAnsiTerminal();
artifacts = Artifacts.test();
usage = TestUsage();
fs = MemoryFileSystem.test();
......@@ -429,6 +431,7 @@ void main() {
})
)));
}, overrides: <Type, Generator>{
AnsiTerminal: () => fakeTerminal,
Artifacts: () => artifacts,
Cache: () => Cache.test(processManager: FakeProcessManager.any()),
DeviceManager: () => mockDeviceManager,
......
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