| Index: tests/standalone/io/http_server_early_client_close_test.dart
|
| diff --git a/tests/standalone/io/http_server_early_client_close_test.dart b/tests/standalone/io/http_server_early_client_close_test.dart
|
| index d1d0d0b06c32348ad4a19e72d05f6fbf2403c96f..aca38bd9dfbb5600828ccdc64b1bfe801cca0e38 100644
|
| --- a/tests/standalone/io/http_server_early_client_close_test.dart
|
| +++ b/tests/standalone/io/http_server_early_client_close_test.dart
|
| @@ -81,13 +81,13 @@ void testEarlyClose() {
|
| HttpServer server = new HttpServer();
|
| server.listen("127.0.0.1", 0);
|
| void runTest(Iterator it) {
|
| - if (it.hasNext) {
|
| - it.next().execute(server).then((_) => runTest(it));
|
| + if (it.moveNext()) {
|
| + it.current.execute(server).then((_) => runTest(it));
|
| } else {
|
| server.close();
|
| }
|
| }
|
| - runTest(tests.iterator());
|
| + runTest(tests.iterator);
|
| }
|
|
|
| void main() {
|
|
|