This reverts commit 2e50fd75eb.
This commit is contained in:
@@ -242,11 +242,6 @@ class FakeVmServiceHost {
|
||||
.having((Map<String, Object> request) => request['id'], 'id', fakeRequest.id)
|
||||
.having((Map<String, Object> request) => request['params'], 'args', fakeRequest.args)
|
||||
);
|
||||
if (fakeRequest.close) {
|
||||
_vmService.dispose();
|
||||
expect(_requests, isEmpty);
|
||||
return;
|
||||
}
|
||||
if (fakeRequest.errorCode == null) {
|
||||
_input.add(json.encode(<String, Object>{
|
||||
'jsonrpc': '2.0',
|
||||
@@ -303,15 +298,11 @@ class FakeVmServiceRequest implements VmServiceExpectation {
|
||||
@required this.args,
|
||||
this.jsonResponse,
|
||||
this.errorCode,
|
||||
this.close = false,
|
||||
});
|
||||
|
||||
final String method;
|
||||
final String id;
|
||||
|
||||
/// When true, the vm service is automatically closed.
|
||||
final bool close;
|
||||
|
||||
/// If non-null, the error code for a [vm_service.RPCError] in place of a
|
||||
/// standard response.
|
||||
final int errorCode;
|
||||
|
||||
Reference in New Issue
Block a user