diff --git a/test/embed_shelf_test.dart b/test/embed_shelf_test.dart index f3af59db..6f9c015a 100644 --- a/test/embed_shelf_test.dart +++ b/test/embed_shelf_test.dart @@ -79,7 +79,7 @@ main() { var client = new HttpClient(); var rq = await client.openUrl('GET', Uri.parse('$url/hijack')); var rs = await rq.close(); - var body = await rs.transform(utf8.decoder).join(); + var body = await rs.cast>().transform(utf8.decoder).join(); print('Response: $body'); expect(json.decode(body), {'error': 'crime'}); } on HttpException catch (e, st) {