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

Unified Diff: test/peer_test.dart

Issue 1659313002: Fix the tests. (Closed) Base URL: git@github.com:dart-lang/json_rpc_2.git@master
Patch Set: Created 4 years, 11 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') | test/server/server_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/peer_test.dart
diff --git a/test/peer_test.dart b/test/peer_test.dart
index 89ab2d6112fe1dfee2eb4be2689b0a1f075648de..ad7ad22e08abd8f75c2169ec0d65c7bd43b69111 100644
--- a/test/peer_test.dart
+++ b/test/peer_test.dart
@@ -174,7 +174,8 @@ void main() {
"error": {
'code': error_code.PARSE_ERROR,
"message": startsWith("Invalid JSON: "),
- "data": {'request': '{invalid'}
+ // TODO(nweiz): Always expect the source when sdk#25655 is fixed.
+ "data": {'request': anyOf([isNull, '{invalid'])}
},
"id": null
}));
« no previous file with comments | « pubspec.yaml ('k') | test/server/server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698