Index: tests/standalone/io/http_redirect_test.dart |
diff --git a/tests/standalone/io/http_redirect_test.dart b/tests/standalone/io/http_redirect_test.dart |
index 668225e35028b5faa472d5d1298ad12d506b80ea..4ea9fe061ce1dc4efed85d64a55bfbf394cec934 100644 |
--- a/tests/standalone/io/http_redirect_test.dart |
+++ b/tests/standalone/io/http_redirect_test.dart |
@@ -91,7 +91,7 @@ void testManualRedirect() { |
client.getUrl(new Uri.fromString("http://127.0.0.1:${server.port}/1")); |
conn.followRedirects = false; |
conn.onResponse = (HttpClientResponse response) { |
- response.inputStream.onData = () => response.inputStream.read(); |
+ response.inputStream.onData = response.inputStream.read; |
response.inputStream.onClosed = () { |
redirectCount++; |
if (redirectCount < 10) { |