Commit d3fbf2ae authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

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