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

Unified Diff: pkg/analysis_server/test/integration/asynchrony_test.dart

Issue 683573003: Fix analysis server asynchrony test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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/integration/asynchrony_test.dart
diff --git a/pkg/analysis_server/test/integration/asynchrony_test.dart b/pkg/analysis_server/test/integration/asynchrony_test.dart
index 4ae0e19ce28972de4514b438e357e1a198232589..79eb1b23e1c1a6de769b259384a7a4f99d47069a 100644
--- a/pkg/analysis_server/test/integration/asynchrony_test.dart
+++ b/pkg/analysis_server/test/integration/asynchrony_test.dart
@@ -51,12 +51,14 @@ class AsynchronyIntegrationTest {
// Begin processing responses from the server.
server.listenToOutput((String event, params) {
- // No notifications are expected.
- fail('Unexpected notification: $event');
+ // The only expected notification is server.connected.
+ if (event != 'server.connected') {
+ fail('Unexpected notification: $event');
+ }
});
// Terminate the test when the response to the last message is received.
- lastMessageResult.then((_) {
+ return lastMessageResult.then((_) {
server.send("server.shutdown", null).then((_) {
return server.exitCode;
});
« 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