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

Unified Diff: pkg/http/test/response_test.dart

Issue 16125005: Make new StreamController be async by default. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments Created 7 years, 7 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
« no previous file with comments | « pkg/http/test/multipart_test.dart ('k') | pkg/logging/lib/logging.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/test/response_test.dart
diff --git a/pkg/http/test/response_test.dart b/pkg/http/test/response_test.dart
index 17b2b60534665f41ffeefaa3c9c9f214ae899f1a..5fafa37a3dd4c69fa035002a7e73e9d4915868d2 100644
--- a/pkg/http/test/response_test.dart
+++ b/pkg/http/test/response_test.dart
@@ -44,7 +44,7 @@ void main() {
group('.fromStream()', () {
test('sets body', () {
- var controller = new StreamController();
+ var controller = new StreamController(sync: true);
var streamResponse = new http.StreamedResponse(
controller.stream, 200, 13);
var future = http.Response.fromStream(streamResponse)
@@ -57,7 +57,7 @@ void main() {
});
test('sets bodyBytes', () {
- var controller = new StreamController();
+ var controller = new StreamController(sync: true);
var streamResponse = new http.StreamedResponse(controller.stream, 200, 5);
var future = http.Response.fromStream(streamResponse)
.then((response) => response.bodyBytes);
« no previous file with comments | « pkg/http/test/multipart_test.dart ('k') | pkg/logging/lib/logging.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698