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

Unified Diff: sdk/lib/_internal/pub/test/lish/preview_package_validation_has_a_warning_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/lish/preview_package_validation_has_a_warning_test.dart
diff --git a/sdk/lib/_internal/pub/test/lish/preview_package_validation_has_a_warning_test.dart b/sdk/lib/_internal/pub/test/lish/preview_package_validation_has_a_warning_test.dart
index 8bf1251db506d30d44c36322f851f586a1a5fb90..a604140a50579d121f0d75cbee3a9e250512269b 100644
--- a/sdk/lib/_internal/pub/test/lish/preview_package_validation_has_a_warning_test.dart
+++ b/sdk/lib/_internal/pub/test/lish/preview_package_validation_has_a_warning_test.dart
@@ -4,6 +4,7 @@
import 'package:scheduled_test/scheduled_test.dart';
import 'package:scheduled_test/scheduled_server.dart';
+import 'package:scheduled_test/scheduled_stream.dart';
import '../../lib/src/exit_codes.dart' as exit_codes;
import '../descriptor.dart' as d;
@@ -22,10 +23,12 @@ main() {
var pub = startPublish(server, args: ['--dry-run']);
pub.shouldExit(exit_codes.SUCCESS);
- expect(pub.remainingStderr(), completion(contains(
- 'Suggestions:\n* Author "Nathan Weizenbaum" in pubspec.yaml should '
- 'have an email address\n'
- ' (e.g. "name <email>").\n\n'
- 'Package has 1 warning.')));
+ pub.stderr.expect(consumeThrough('Suggestions:'));
+ pub.stderr.expect(emitsString(
+ '* Author "Nathan Weizenbaum" in pubspec.yaml should have an email '
+ 'address\n'
+ ' (e.g. "name <email>").\n'
+ '\n'
Bob Nystrom 2014/02/14 17:55:02 It might be cleaner just to use a multi-line strin
nweiz 2014/02/18 22:01:10 That's contrary to how we usually do long multilin
Bob Nystrom 2014/02/18 22:12:59 Is that true? We have a decent number of tests wit
nweiz 2014/02/18 22:28:02 That's true, but they tend to be older tests or wh
Bob Nystrom 2014/02/18 22:48:22 +1 for consistency. I'm OK with avoiding multiline
+ 'Package has 1 warning.'));
});
}

Powered by Google App Engine
This is Rietveld 408576698