mirror of https://github.com/grpc/grpc-dart.git
Update test dependencies
This commit is contained in:
parent
b8e5c5c2c5
commit
86a6ae2dad
|
@ -15,5 +15,5 @@ dependencies:
|
|||
http2: ^0.1.7
|
||||
|
||||
dev_dependencies:
|
||||
mockito: ^2.0.2
|
||||
test: ^0.12.0
|
||||
mockito: ^3.0.0-beta
|
||||
test: ^1.2.0
|
||||
|
|
|
@ -123,8 +123,8 @@ class ClientHarness {
|
|||
stream = new MockStream();
|
||||
fromClient = new StreamController();
|
||||
toClient = new StreamController();
|
||||
when(transport.makeRequest(typed(any))).thenReturn(stream);
|
||||
when(transport.onActiveStateChanged = typed(captureAny)).thenReturn(null);
|
||||
when(transport.makeRequest(any)).thenReturn(stream);
|
||||
when(transport.onActiveStateChanged = captureAny).thenReturn(null);
|
||||
when(stream.outgoingMessages).thenReturn(fromClient.sink);
|
||||
when(stream.incomingMessages).thenAnswer((_) => toClient.stream);
|
||||
client = new TestClient(channel);
|
||||
|
|
Loading…
Reference in New Issue