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

Unified Diff: pkg/analysis_server/test/mocks.dart

Issue 2784363003: Use the *correct* type for the fix to analysis_server/test/mocks.dart. (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/mocks.dart
diff --git a/pkg/analysis_server/test/mocks.dart b/pkg/analysis_server/test/mocks.dart
index d1d3358470b729e50fd20b74989cdb8c21a644f7..5e8e954ea71c29613745da4ea25370ad11ddaca6 100644
--- a/pkg/analysis_server/test/mocks.dart
+++ b/pkg/analysis_server/test/mocks.dart
@@ -250,7 +250,7 @@ class MockServerChannel implements ServerCommunicationChannel {
Future<Response> waitForResponse(Request request) {
String id = request.id;
return new Future<Response>(() => responseController.stream
- .firstWhere((response) => response.id == id) as Response);
+ .firstWhere((response) => response.id == id) as Future<Response>);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698