Index: sdk/lib/_internal/pub/test/serve/web_socket/unserve_directory_not_served_test.dart |
diff --git a/sdk/lib/_internal/pub/test/serve/web_socket/unserve_directory_not_served_test.dart b/sdk/lib/_internal/pub/test/serve/web_socket/unserve_directory_not_served_test.dart |
index 7d80601aecfd6f9f81b61566a502175b206e953a..1f2273e439a1d2e90fd476f2f5b6b52f3733dba8 100644 |
--- a/sdk/lib/_internal/pub/test/serve/web_socket/unserve_directory_not_served_test.dart |
+++ b/sdk/lib/_internal/pub/test/serve/web_socket/unserve_directory_not_served_test.dart |
@@ -21,13 +21,8 @@ main() { |
pubServe(); |
// Unbind the directory. |
- expectWebSocketCall({ |
- "command": "unserveDirectory", |
- "path": "test" |
- }, replyEquals: { |
- "code": "NOT_SERVED", |
- "error": 'Directory "test" is not bound to a server.' |
- }); |
+ expectWebSocketError("unserveDirectory", {"path": "test"}, NOT_SERVED, |
+ 'Directory "test" is not bound to a server.'); |
endPubServe(); |
}); |