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

Unified Diff: runtime/observatory/tests/service/test_helper.dart

Issue 1120133002: Rework error handling in the service protocol and in Observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix tests Created 5 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 | « runtime/observatory/tests/service/native_metrics_test.dart ('k') | runtime/vm/json_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/tests/service/test_helper.dart
diff --git a/runtime/observatory/tests/service/test_helper.dart b/runtime/observatory/tests/service/test_helper.dart
index fd639339c41e9fc74aa99ab03685e4c671d309bd..6da69becfc01f52b5f273e55768acc87ae72a345 100644
--- a/runtime/observatory/tests/service/test_helper.dart
+++ b/runtime/observatory/tests/service/test_helper.dart
@@ -11,10 +11,7 @@ import 'dart:io';
import 'package:observatory/service_io.dart';
bool _isWebSocketDisconnect(e) {
- if (e is! ServiceException) {
- return false;
- }
- return (e as ServiceException).message == 'WebSocket closed';
+ return e is NetworkRpcException;
}
// This invocation should set up the state being tested.
« no previous file with comments | « runtime/observatory/tests/service/native_metrics_test.dart ('k') | runtime/vm/json_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698