| Index: tests/standalone/io/socket_close_test.dart
|
| diff --git a/tests/standalone/io/socket_close_test.dart b/tests/standalone/io/socket_close_test.dart
|
| index efb6f20218e35d223b725519dcef5fa7753d9d7f..426f45a557c688fbbfb741981105016f3b24e158 100644
|
| --- a/tests/standalone/io/socket_close_test.dart
|
| +++ b/tests/standalone/io/socket_close_test.dart
|
| @@ -9,8 +9,9 @@
|
| //
|
| // Test socket close events.
|
|
|
| -import "dart:io";
|
| -import "dart:isolate";
|
| +import 'dart:async';
|
| +import 'dart:io';
|
| +import 'dart:isolate';
|
|
|
| const SERVERSHUTDOWN = -1;
|
| const ITERATIONS = 10;
|
| @@ -51,7 +52,7 @@ class SocketClose {
|
| case 4:
|
| case 5:
|
| case 6:
|
| - List<int> b = new List<int>(5);
|
| + List<int> b = new List<int>.fixedLength(5);
|
| _readBytes += _socket.readList(b, 0, 5);
|
| if ((_readBytes % 5) == 0) {
|
| _dataEvents++;
|
| @@ -219,7 +220,7 @@ class SocketCloseServer {
|
| var connection = data.connection;
|
|
|
| void readBytes(whenFiveBytes) {
|
| - List<int> b = new List<int>(5);
|
| + List<int> b = new List<int>.fixedLength(5);
|
| data.readBytes += connection.readList(b, 0, 5);
|
| if (data.readBytes == 5) {
|
| whenFiveBytes();
|
|
|