Index: tests/standalone/io/secure_socket_bad_certificate_test.dart |
diff --git a/tests/standalone/io/secure_socket_bad_certificate_test.dart b/tests/standalone/io/secure_socket_bad_certificate_test.dart |
index c2581f82011860c2e2be3650c98fc24dfce3bc0e..5cb414566380895f79884ed949116d66cb044b86 100644 |
--- a/tests/standalone/io/secure_socket_bad_certificate_test.dart |
+++ b/tests/standalone/io/secure_socket_bad_certificate_test.dart |
@@ -51,7 +51,7 @@ Future testCertificateCallback({String host, bool acceptCertificate}) { |
Expect.isTrue(acceptCertificate); |
socket.write("GET / HTTP/1.0\r\nHost: $host\r\n\r\n"); |
socket.close(); |
- return socket.reduce(<int>[], (message, data) => message..addAll(data)) |
+ return socket.fold(<int>[], (message, data) => message..addAll(data)) |
.then((message) { |
String received = new String.fromCharCodes(message); |
Expect.isTrue(received.contains('</body></html>')); |