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

Unified Diff: test/mock_client_test.dart

Issue 1947793002: Fix a broken test. (Closed) Base URL: git@github.com:dart-lang/http@master
Patch Set: Created 4 years, 8 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 | « pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mock_client_test.dart
diff --git a/test/mock_client_test.dart b/test/mock_client_test.dart
index 84e9af179166c3a3cb14c40286a989ad755c3f1f..a19adcad2485a255498bb66eea27495ab145dfde 100644
--- a/test/mock_client_test.dart
+++ b/test/mock_client_test.dart
@@ -33,7 +33,7 @@ void main() {
var client = new MockClient.streaming((request, bodyStream) {
return bodyStream.bytesToString().then((bodyString) {
var controller = new StreamController<List<int>>(sync: true);
- async.then((_) {
+ new Future.sync(() {
controller.add('Request body was "$bodyString"'.codeUnits);
controller.close();
});
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698