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

Unified Diff: sdk/lib/_internal/pub/test/pub_uploader_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: update pubspecs 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub/test/pub_uploader_test.dart
diff --git a/sdk/lib/_internal/pub/test/pub_uploader_test.dart b/sdk/lib/_internal/pub/test/pub_uploader_test.dart
index 7f0bde9e609b4601973c8d1a77a9c32791b06ffe..4d73569f4ea1fec4d57fca0d2f1ab5ffe70155a4 100644
--- a/sdk/lib/_internal/pub/test/pub_uploader_test.dart
+++ b/sdk/lib/_internal/pub/test/pub_uploader_test.dart
@@ -73,7 +73,7 @@ main() {
}), completes);
});
- expect(pub.nextLine(), completion(equals('Good job!')));
+ pub.stdout.expect('Good job!');
pub.shouldExit(exit_codes.SUCCESS);
});
@@ -91,7 +91,7 @@ main() {
request.response.close();
});
- expect(pub.nextLine(), completion(equals('Good job!')));
+ pub.stdout.expect('Good job!');
pub.shouldExit(exit_codes.SUCCESS);
});
@@ -111,7 +111,7 @@ main() {
request.response.close();
});
- expect(pub.nextLine(), completion(equals('Good job!')));
+ pub.stdout.expect('Good job!');
pub.shouldExit(exit_codes.SUCCESS);
});
@@ -130,7 +130,7 @@ main() {
request.response.close();
});
- expect(pub.nextErrLine(), completion(equals('Bad job!')));
+ pub.stderr.expect('Bad job!');
pub.shouldExit(1);
});
@@ -150,7 +150,7 @@ main() {
request.response.close();
});
- expect(pub.nextErrLine(), completion(equals('Bad job!')));
+ pub.stderr.expect('Bad job!');
pub.shouldExit(1);
});
@@ -164,8 +164,9 @@ main() {
request.response.close();
});
- expect(pub.nextErrLine(), completion(equals('Invalid server response:')));
- expect(pub.nextErrLine(), completion(equals('{not json')));
+ pub.stderr.expect(emitsString(
+ 'Invalid server response:\n'
+ '{not json'));
Bob Nystrom 2014/02/14 17:55:02 Be consistent about using emitsString() or multipl
nweiz 2014/02/18 22:01:10 I chose [emitsString] for consistency with longer
Bob Nystrom 2014/02/18 22:12:59 That makes sense to me too, but in that case I'd p
pub.shouldExit(1);
});
@@ -179,8 +180,9 @@ main() {
request.response.close();
});
- expect(pub.nextErrLine(), completion(equals('Invalid server response:')));
- expect(pub.nextErrLine(), completion(equals('{not json')));
+ pub.stderr.expect(emitsString(
+ 'Invalid server response:\n'
+ '{not json'));
pub.shouldExit(1);
});
}

Powered by Google App Engine
This is Rietveld 408576698