Index: tests/standalone/io/raw_secure_server_socket_test.dart |
diff --git a/tests/standalone/io/raw_secure_server_socket_test.dart b/tests/standalone/io/raw_secure_server_socket_test.dart |
index 73609ae12d92f342808f92526f93ffd6bb9f4dae..258a0ea42285c96d0e7fe710fd4f259d8a103acb 100644 |
--- a/tests/standalone/io/raw_secure_server_socket_test.dart |
+++ b/tests/standalone/io/raw_secure_server_socket_test.dart |
@@ -143,7 +143,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; |
} |
@@ -162,7 +162,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.writeEventsEnabled = false; |
client.listen((event) { |
@@ -212,7 +212,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.listen((event) { |
switch (event) { |
case RawSocketEvent.READ: |