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

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

Issue 2794503002: Fix static typing problem in analysis_server tests. (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 | « pkg/analysis_server/pubspec.yaml ('k') | 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 fa683a3a5b28addc4d1e566f1e26f6197699b8af..d1d3358470b729e50fd20b74989cdb8c21a644f7 100644
--- a/pkg/analysis_server/test/mocks.dart
+++ b/pkg/analysis_server/test/mocks.dart
@@ -249,8 +249,8 @@ class MockServerChannel implements ServerCommunicationChannel {
Future<Response> waitForResponse(Request request) {
String id = request.id;
- return new Future<Response>(() =>
- responseController.stream.firstWhere((response) => response.id == id));
+ return new Future<Response>(() => responseController.stream
+ .firstWhere((response) => response.id == id) as Response);
}
}
« no previous file with comments | « pkg/analysis_server/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698