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

Unified Diff: sdk/lib/_internal/pub/test/lish/force_publishes_if_there_are_warnings_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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub/test/lish/force_publishes_if_there_are_warnings_test.dart
diff --git a/sdk/lib/_internal/pub/test/lish/force_publishes_if_there_are_warnings_test.dart b/sdk/lib/_internal/pub/test/lish/force_publishes_if_there_are_warnings_test.dart
index d097e72a7bf323c0d4ff08315b1e568c379e5c27..85ce297148929a7716006b2178c42cb7deaa6d01 100644
--- a/sdk/lib/_internal/pub/test/lish/force_publishes_if_there_are_warnings_test.dart
+++ b/sdk/lib/_internal/pub/test/lish/force_publishes_if_there_are_warnings_test.dart
@@ -4,8 +4,9 @@
import 'dart:convert';
-import 'package:scheduled_test/scheduled_test.dart';
import 'package:scheduled_test/scheduled_server.dart';
+import 'package:scheduled_test/scheduled_stream.dart';
+import 'package:scheduled_test/scheduled_test.dart';
import '../../lib/src/exit_codes.dart' as exit_codes;
import '../descriptor.dart' as d;
@@ -36,11 +37,11 @@ main() {
});
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>").')));
- expect(pub.remainingStdout(), completion(contains(
- 'Package test_pkg 1.0.0 uploaded!')));
+ pub.stderr.expect(consumeThrough('Suggestions:'));
+ pub.stderr.expect(emitsLines(
+ '* Author "Nathan Weizenbaum" in pubspec.yaml should have an email '
+ 'address\n'
+ ' (e.g. "name <email>").'));
+ pub.stdout.expect(consumeThrough('Package test_pkg 1.0.0 uploaded!'));
});
}

Powered by Google App Engine
This is Rietveld 408576698