Index: test/client/utils.dart |
diff --git a/test/client/utils.dart b/test/client/utils.dart |
index 868489235658285a343a311118f832e3836a6f5d..5eb0b60474cf5568f1d4f4af2bb1a11342ebbe2d 100644 |
--- a/test/client/utils.dart |
+++ b/test/client/utils.dart |
@@ -5,9 +5,11 @@ |
import 'dart:async'; |
import 'dart:convert'; |
+import 'package:stream_channel/stream_channel.dart'; |
+import 'package:test/test.dart'; |
+ |
import 'package:json_rpc_2/json_rpc_2.dart' as json_rpc; |
import 'package:json_rpc_2/error_code.dart' as error_code; |
-import 'package:test/test.dart'; |
/// A controller used to test a [json_rpc.Client]. |
class ClientController { |
@@ -23,7 +25,7 @@ class ClientController { |
ClientController() { |
_client = new json_rpc.Client( |
- _responseController.stream, _requestController.sink); |
+ new StreamChannel(_responseController.stream, _requestController.sink)); |
_client.listen(); |
} |