Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: sdk/lib/_internal/pub/test/hosted/version_negotiation_test.dart

Issue 164773003: Change ScheduledProcess's output streams over to be ScheduledStreams. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 }); 55 });
56 56
57 // TODO(nweiz): this shouldn't request the versions twice (issue 11077). 57 // TODO(nweiz): this shouldn't request the versions twice (issue 11077).
58 server.handle('GET', '/api/packages/foo', (request) { 58 server.handle('GET', '/api/packages/foo', (request) {
59 request.response.statusCode = 406; 59 request.response.statusCode = 406;
60 request.response.close(); 60 request.response.close();
61 }); 61 });
62 62
63 pub.shouldExit(1); 63 pub.shouldExit(1);
64 64
65 expect(pub.remainingStderr(), completion(equals( 65 pub.stderr.expect(emitsLines(
66 "Pub 0.1.2+3 is incompatible with the current version of 127.0.0.1.\n" 66 "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."))); 67 "Upgrade pub to the latest version and try again."));
68 }); 68 });
69 }); 69 });
70 } 70 }
OLDNEW
« no previous file with comments | « pkg/watcher/pubspec.yaml ('k') | sdk/lib/_internal/pub/test/lish/archives_and_uploads_a_package_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698