Index: tests/standalone/io/echo_server_stream_test.dart |
diff --git a/tests/standalone/io/echo_server_stream_test.dart b/tests/standalone/io/echo_server_stream_test.dart |
index 3a59abad94230ad77202d186daa7ca9aed1088cb..b3a18689b33a40f5e5171a32f9ce32a3dd1b9c87 100644 |
--- a/tests/standalone/io/echo_server_stream_test.dart |
+++ b/tests/standalone/io/echo_server_stream_test.dart |
@@ -24,7 +24,7 @@ class EchoServerGame { |
EchoServerGame.start() |
: _receivePort = new ReceivePort(), |
_sendPort = null, |
- _buffer = new List<int>.fixedLength(MSGSIZE), |
+ _buffer = new List<int>(MSGSIZE), |
_messages = 0 { |
for (int i = 0; i < MSGSIZE; i++) { |
_buffer[i] = FIRSTCHAR + i; |
@@ -65,7 +65,7 @@ class EchoServerGame { |
onDone: onClosed); |
_socket.add(_buffer); |
_socket.close(); |
- data = new List<int>.fixedLength(MSGSIZE); |
+ data = new List<int>(MSGSIZE); |
} |
Socket.connect(TestingServer.HOST, _port).then((s) { |
@@ -107,7 +107,7 @@ class EchoServer extends TestingServer { |
static const int MSGSIZE = EchoServerGame.MSGSIZE; |
void onConnection(Socket connection) { |
- List<int> buffer = new List<int>.fixedLength(MSGSIZE); |
+ List<int> buffer = new List<int>(MSGSIZE); |
int offset = 0; |
void dataReceived(List<int> data) { |