Index: tests/standalone/io/echo_server_test.dart |
diff --git a/tests/standalone/io/echo_server_test.dart b/tests/standalone/io/echo_server_test.dart |
index 27c31282960bf610beec5b87a7d89be20cc90202..4208bb8663c3f19f5ac733991256f72c40aceebd 100644 |
--- a/tests/standalone/io/echo_server_test.dart |
+++ b/tests/standalone/io/echo_server_test.dart |
@@ -30,7 +30,7 @@ class EchoServerGame { |
EchoServerGame.start() |
: _receivePort = new ReceivePort(), |
_sendPort = null, |
- _buffer = new List<int>(MSGSIZE), |
+ _buffer = new List<int>.fixedLength(MSGSIZE), |
_messages = 0 { |
for (int i = 0; i < MSGSIZE; i++) { |
_buffer[i] = FIRSTCHAR + i; |
@@ -44,7 +44,7 @@ class EchoServerGame { |
void messageHandler() { |
- List<int> bufferReceived = new List<int>(MSGSIZE); |
+ List<int> bufferReceived = new List<int>.fixedLength(MSGSIZE); |
int bytesRead = 0; |
void handleRead() { |
@@ -141,7 +141,7 @@ class EchoServer extends TestingServer { |
void messageHandler() { |
- List<int> buffer = new List<int>(msgSize); |
+ List<int> buffer = new List<int>.fixedLength(msgSize); |
int bytesRead = 0; |
void handleRead() { |