Unverified Commit d29cd9be authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Clean up device logger and port forwarding on drive completion (#68655)

parent 8b799068
...@@ -386,6 +386,8 @@ $ex ...@@ -386,6 +386,8 @@ $ex
globals.printStatus('Stopping application instance.'); globals.printStatus('Stopping application instance.');
await appStopper(this, package); await appStopper(this, package);
} }
await device?.dispose();
} }
return FlutterCommandResult.success(); return FlutterCommandResult.success();
......
...@@ -228,6 +228,7 @@ void main() { ...@@ -228,6 +228,7 @@ void main() {
'10', '10',
]; ];
await createTestCommandRunner(command).run(args); await createTestCommandRunner(command).run(args);
verify(mockDevice.dispose());
expect(testLogger.errorText, isEmpty); expect(testLogger.errorText, isEmpty);
}, overrides: <Type, Generator>{ }, overrides: <Type, Generator>{
FileSystem: () => fs, FileSystem: () => fs,
...@@ -529,6 +530,7 @@ void main() { ...@@ -529,6 +530,7 @@ void main() {
prebuiltApplication: false, prebuiltApplication: false,
userIdentifier: anyNamed('userIdentifier'), userIdentifier: anyNamed('userIdentifier'),
)); ));
verify(mockDevice.dispose());
}, overrides: <Type, Generator>{ }, overrides: <Type, Generator>{
FileSystem: () => fs, FileSystem: () => fs,
ProcessManager: () => FakeProcessManager.any(), ProcessManager: () => FakeProcessManager.any(),
...@@ -558,6 +560,7 @@ void main() { ...@@ -558,6 +560,7 @@ void main() {
prebuiltApplication: false, prebuiltApplication: false,
userIdentifier: anyNamed('userIdentifier'), userIdentifier: anyNamed('userIdentifier'),
)); ));
verify(mockDevice.dispose());
}, overrides: <Type, Generator>{ }, overrides: <Type, Generator>{
FileSystem: () => fs, FileSystem: () => fs,
ProcessManager: () => FakeProcessManager.any(), ProcessManager: () => FakeProcessManager.any(),
......
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