Skip to content

Commit d31c250

Browse files
[flutter_tools] Fix leaky test (#105927)
1 parent 712860d commit d31c250

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/flutter_tools/test/commands.shard/hermetic/run_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,14 @@ void main() {
145145
MemoryFileSystem fs;
146146
Artifacts artifacts;
147147
TestUsage usage;
148+
FakeAnsiTerminal fakeTerminal;
148149

149150
setUpAll(() {
150151
Cache.disableLocking();
151152
});
152153

153154
setUp(() {
155+
fakeTerminal = FakeAnsiTerminal();
154156
artifacts = Artifacts.test();
155157
usage = TestUsage();
156158
fs = MemoryFileSystem.test();
@@ -429,6 +431,7 @@ void main() {
429431
})
430432
)));
431433
}, overrides: <Type, Generator>{
434+
AnsiTerminal: () => fakeTerminal,
432435
Artifacts: () => artifacts,
433436
Cache: () => Cache.test(processManager: FakeProcessManager.any()),
434437
DeviceManager: () => mockDeviceManager,

0 commit comments

Comments
 (0)