| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library pub_tests; | 5 library pub_tests; |
| 6 | 6 |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 | 8 |
| 9 import 'package:scheduled_test/scheduled_server.dart'; | 9 import 'package:scheduled_test/scheduled_server.dart'; |
| 10 import 'package:scheduled_test/scheduled_test.dart'; | 10 import 'package:scheduled_test/scheduled_test.dart'; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 // TODO(nweiz): this shouldn't request the versions twice (issue 11077). | 59 // TODO(nweiz): this shouldn't request the versions twice (issue 11077). |
| 60 server.handle('GET', '/api/packages/foo', (request) { | 60 server.handle('GET', '/api/packages/foo', (request) { |
| 61 request.response.statusCode = 406; | 61 request.response.statusCode = 406; |
| 62 request.response.close(); | 62 request.response.close(); |
| 63 }); | 63 }); |
| 64 | 64 |
| 65 pub.shouldExit(1); | 65 pub.shouldExit(1); |
| 66 | 66 |
| 67 expect(pub.remainingStderr(), completion(equals( | 67 expect(pub.remainingStderr(), completion(equals( |
| 68 "Pub 0.1.2+3 is incompatible with the current version of localhost.\n" | 68 "Pub 0.1.2+3 is incompatible with the current version of 127.0.0.1.\n" |
| 69 "Upgrade pub to the latest version and try again."))); | 69 "Upgrade pub to the latest version and try again."))); |
| 70 }); | 70 }); |
| 71 }); | 71 }); |
| 72 } | 72 } |
| OLD | NEW |