Chromium Code Reviews| 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 'package:scheduled_test/scheduled_server.dart'; | 7 import 'package:scheduled_test/scheduled_server.dart'; |
| 8 import 'package:scheduled_test/scheduled_test.dart'; | 8 import 'package:scheduled_test/scheduled_test.dart'; |
| 9 | 9 |
| 10 import '../descriptor.dart' as d; | 10 import '../descriptor.dart' as d; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 } | 47 } |
| 48 }).create(); | 48 }).create(); |
| 49 | 49 |
| 50 var pub = startPub(args: [command.name]); | 50 var pub = startPub(args: [command.name]); |
| 51 | 51 |
| 52 server.handle('GET', '/api/packages/foo', (request) { | 52 server.handle('GET', '/api/packages/foo', (request) { |
| 53 request.response.statusCode = 406; | 53 request.response.statusCode = 406; |
| 54 request.response.close(); | 54 request.response.close(); |
| 55 }); | 55 }); |
| 56 | 56 |
| 57 // TODO(nweiz): this shouldn't request the versions twice (issue 11077). | |
|
Anders Johnsen
2014/01/05 20:47:00
How is removing this test fixing the issue? :)
Bob Nystrom
2014/01/06 18:56:23
This isn't removing the test. :)
What this test d
Anders Johnsen
2014/01/07 05:59:29
Ahh, I see - great then ;)
| |
| 58 server.handle('GET', '/api/packages/foo', (request) { | |
| 59 request.response.statusCode = 406; | |
| 60 request.response.close(); | |
| 61 }); | |
| 62 | |
| 63 pub.shouldExit(1); | 57 pub.shouldExit(1); |
| 64 | 58 |
| 65 expect(pub.remainingStderr(), completion(equals( | 59 expect(pub.remainingStderr(), completion(equals( |
| 66 "Pub 0.1.2+3 is incompatible with the current version of 127.0.0.1.\n" | 60 "Pub 0.1.2+3 is incompatible with the current version of 127.0.0.1.\n" |
| 67 "Upgrade pub to the latest version and try again."))); | 61 "Upgrade pub to the latest version and try again."))); |
| 68 }); | 62 }); |
| 69 }); | 63 }); |
| 70 } | 64 } |
| OLD | NEW |