Index: tests/standalone/io/http_content_length_test.dart |
diff --git a/tests/standalone/io/http_content_length_test.dart b/tests/standalone/io/http_content_length_test.dart |
index 8cfe93441a4b1cd7d1a727c89dcebf4786d08557..62902181737a62d972e0c5dedb429937e8c00d46 100644 |
--- a/tests/standalone/io/http_content_length_test.dart |
+++ b/tests/standalone/io/http_content_length_test.dart |
@@ -184,7 +184,7 @@ void testHttp10() { |
Socket socket = new Socket("127.0.0.1", server.port); |
socket.onConnect = () { |
- List<int> buffer = new List<int>(1024); |
+ List<int> buffer = new List<int>.fixedLength(1024); |
socket.outputStream.writeString("GET / HTTP/1.0\r\n\r\n"); |
socket.onData = () => socket.readList(buffer, 0, buffer.length); |
socket.onClosed = () { |