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
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(),
......
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