Index: tests/standalone/io/secure_server_socket_test.dart |
diff --git a/tests/standalone/io/secure_server_socket_test.dart b/tests/standalone/io/secure_server_socket_test.dart |
index cadabf39db211df2ee2261257f3dcca3ec983d65..9ad7deb48e7d318556b6d8a627a6277f4a6cf2c7 100644 |
--- a/tests/standalone/io/secure_server_socket_test.dart |
+++ b/tests/standalone/io/secure_server_socket_test.dart |
@@ -142,7 +142,7 @@ void testSimpleReadWrite() { |
const messageSize = 1000; |
List<int> createTestData() { |
- List<int> data = new List.fixedLength(messageSize); |
+ List<int> data = new List<int>(messageSize); |
for (int i = 0; i < messageSize; i++) { |
data[i] = i & 0xff; |
} |
@@ -161,7 +161,7 @@ void testSimpleReadWrite() { |
server.listen((client) { |
int bytesRead = 0; |
int bytesWritten = 0; |
- List<int> data = new List.fixedLength(messageSize); |
+ List<int> data = new List<int>(messageSize); |
client.listen( |
(buffer) { |
@@ -183,7 +183,7 @@ void testSimpleReadWrite() { |
int bytesRead = 0; |
int bytesWritten = 0; |
List<int> dataSent = createTestData(); |
- List<int> dataReceived = new List<int>.fixedLength(dataSent.length); |
+ List<int> dataReceived = new List<int>(dataSent.length); |
socket.add(dataSent); |
socket.close(); // Can also be delayed. |
socket.listen( |