Index: tests/standalone/io/http_server_early_client_close_test.dart |
diff --git a/tests/standalone/io/http_server_early_client_close_test.dart b/tests/standalone/io/http_server_early_client_close_test.dart |
index fbec8bb43c9352d844bf85eee0bd9d1c1fd6a1c7..5a5889952a5cde0143b6f0a124246ff30d45fe81 100644 |
--- a/tests/standalone/io/http_server_early_client_close_test.dart |
+++ b/tests/standalone/io/http_server_early_client_close_test.dart |
@@ -12,7 +12,7 @@ void sendData(List<int> data, int port) { |
socket.listen((data) { |
Expect.fail("No data response was expected"); |
}); |
- socket.writeBytes(data); |
+ socket.add(data); |
socket.close(); |
socket.done.then((_) { |
socket.destroy(); |