Index: tests/standalone/io/http_client_request_test.dart |
diff --git a/tests/standalone/io/http_client_request_test.dart b/tests/standalone/io/http_client_request_test.dart |
index 7d77c032a8dd77dbfeec1da0b49804596640f73d..a9434d31781e2a12eeb3e7ba75c39f0ebf8464d9 100644 |
--- a/tests/standalone/io/http_client_request_test.dart |
+++ b/tests/standalone/io/http_client_request_test.dart |
@@ -48,7 +48,7 @@ void testBadResponseAdd() { |
testClientRequest((request) { |
var port = new ReceivePort(); |
request.contentLength = 0; |
- request.writeBytes([0]); |
+ request.add([0]); |
request.close(); |
request.done.catchError((error) { |
port.close(); |
@@ -59,8 +59,8 @@ void testBadResponseAdd() { |
testClientRequest((request) { |
var port = new ReceivePort(); |
request.contentLength = 5; |
- request.writeBytes([0, 0, 0]); |
- request.writeBytes([0, 0, 0]); |
+ request.add([0, 0, 0]); |
+ request.add([0, 0, 0]); |
request.close(); |
request.done.catchError((error) { |
port.close(); |
@@ -71,9 +71,9 @@ void testBadResponseAdd() { |
testClientRequest((request) { |
var port = new ReceivePort(); |
request.contentLength = 0; |
- request.writeBytes(new Uint8List(64 * 1024)); |
- request.writeBytes(new Uint8List(64 * 1024)); |
- request.writeBytes(new Uint8List(64 * 1024)); |
+ request.add(new Uint8List(64 * 1024)); |
+ request.add(new Uint8List(64 * 1024)); |
+ request.add(new Uint8List(64 * 1024)); |
request.close(); |
request.done.catchError((error) { |
port.close(); |
@@ -96,7 +96,7 @@ void testBadResponseClose() { |
testClientRequest((request) { |
var port = new ReceivePort(); |
request.contentLength = 5; |
- request.writeBytes([0]); |
+ request.add([0]); |
request.close(); |
request.done.catchError((error) { |
port.close(); |