Avoid duplicate exceptions on VM Service Mock failure (#10197)

On failure to configure a mock VM service, we get a useful exception in
setUpAll(). This change prevents an additional failure in tearDownAll()
that provides no additional useful diagnostic info.
This commit is contained in:
Chris Bracken
2017-05-18 22:56:12 -07:00
committed by GitHub
parent a253605c76
commit d3fbf2ae6f

View File

@@ -380,7 +380,7 @@ class MockVMService extends BasicMock implements VMService {
}
Future<Null> tearDown() async {
await _server.close();
await _server?.close();
}
@override