mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Clean up device logger and port forwarding on drive completion (#68655)
This commit is contained in:
parent
8b79906842
commit
d29cd9beb6
@ -386,6 +386,8 @@ $ex
|
||||
globals.printStatus('Stopping application instance.');
|
||||
await appStopper(this, package);
|
||||
}
|
||||
|
||||
await device?.dispose();
|
||||
}
|
||||
|
||||
return FlutterCommandResult.success();
|
||||
|
@ -228,6 +228,7 @@ void main() {
|
||||
'10',
|
||||
];
|
||||
await createTestCommandRunner(command).run(args);
|
||||
verify(mockDevice.dispose());
|
||||
expect(testLogger.errorText, isEmpty);
|
||||
}, overrides: <Type, Generator>{
|
||||
FileSystem: () => fs,
|
||||
@ -529,6 +530,7 @@ void main() {
|
||||
prebuiltApplication: false,
|
||||
userIdentifier: anyNamed('userIdentifier'),
|
||||
));
|
||||
verify(mockDevice.dispose());
|
||||
}, overrides: <Type, Generator>{
|
||||
FileSystem: () => fs,
|
||||
ProcessManager: () => FakeProcessManager.any(),
|
||||
@ -558,6 +560,7 @@ void main() {
|
||||
prebuiltApplication: false,
|
||||
userIdentifier: anyNamed('userIdentifier'),
|
||||
));
|
||||
verify(mockDevice.dispose());
|
||||
}, overrides: <Type, Generator>{
|
||||
FileSystem: () => fs,
|
||||
ProcessManager: () => FakeProcessManager.any(),
|
||||
|
Loading…
Reference in New Issue
Block a user