| 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 200dfd523e85b6c3acc5b0e3e4ee266ba39c3a81..a350b59b826b9dd8247c4100225a00c00df25676 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>(MSGSIZE),
|
| + _buffer = new List<int>.fixedLength(MSGSIZE),
|
| _messages = 0 {
|
| for (int i = 0; i < MSGSIZE; i++) {
|
| _buffer[i] = FIRSTCHAR + i;
|
| @@ -77,7 +77,7 @@ class EchoServerGame {
|
| offset += bytesRead;
|
| }
|
|
|
| - if (_messages % 2 == 0) data = new List<int>(MSGSIZE);
|
| + if (_messages % 2 == 0) data = new List<int>.fixedLength(MSGSIZE);
|
| inputStream.onData = onData;
|
| inputStream.onClosed = onClosed;
|
| }
|
| @@ -147,7 +147,7 @@ class EchoServer extends TestingServer {
|
|
|
| void onConnection(Socket connection) {
|
| InputStream inputStream;
|
| - List<int> buffer = new List<int>(MSGSIZE);
|
| + List<int> buffer = new List<int>.fixedLength(MSGSIZE);
|
| int offset = 0;
|
|
|
| void dataReceived() {
|
|
|