Index: tests/standalone/io/secure_client_raw_server_test.dart |
diff --git a/tests/standalone/io/secure_client_raw_server_test.dart b/tests/standalone/io/secure_client_raw_server_test.dart |
index 4bf20c1d77c8d553dd90b58edd32618852f0950b..7b637759e5da428856344bed19fc97964f3c9769 100644 |
--- a/tests/standalone/io/secure_client_raw_server_test.dart |
+++ b/tests/standalone/io/secure_client_raw_server_test.dart |
@@ -44,7 +44,7 @@ Future<RawSecureServerSocket> startEchoServer() { |
} |
break; |
case RawSocketEvent.READ_CLOSED: |
- dataToWrite = readChunks.reduce(<int>[], (list, x) { |
+ dataToWrite = readChunks.fold(<int>[], (list, x) { |
list.addAll(x); |
return list; |
}); |