Index: tests/standalone/io/raw_socket_write_destroy_test.dart |
diff --git a/tests/standalone/io/raw_socket_write_destroy_test.dart b/tests/standalone/io/raw_socket_write_destroy_test.dart |
index b5e558a8433d8130445818577eec07c89ef0a90c..d7dc0d841988d2fdc1462cae4a815b6004189f66 100644 |
--- a/tests/standalone/io/raw_socket_write_destroy_test.dart |
+++ b/tests/standalone/io/raw_socket_write_destroy_test.dart |
@@ -18,7 +18,7 @@ void testWriteDestroyServer() { |
server.listen((socket) { |
socket.writeEventsEnabled = false; |
- var buffer = new List.fixedLength(WROTE, fill: 0); |
+ var buffer = new List.filled(WROTE, 0); |
int offset = 0; |
void write() { |
int n = socket.write(buffer, offset, buffer.length - offset); |
@@ -69,7 +69,7 @@ void testWriteDestroyClient() { |
RawSocket.connect(SERVER_ADDRESS, server.port).then((socket) { |
socket.writeEventsEnabled = false; |
- var buffer = new List.fixedLength(WROTE, fill: 0); |
+ var buffer = new List.filled(WROTE, 0); |
int offset = 0; |
void write() { |
int n = socket.write(buffer, offset, buffer.length - offset); |
@@ -93,4 +93,4 @@ void testWriteDestroyClient() { |
void main() { |
testWriteDestroyServer(); |
testWriteDestroyClient(); |
-} |
+} |