| Index: pkg/analysis_server/test/socket_server_test.dart
|
| diff --git a/pkg/analysis_server/test/socket_server_test.dart b/pkg/analysis_server/test/socket_server_test.dart
|
| index 0f9c083914cb56d228f0122a4f32f4164d2f9327..67c6c2e885f5972935aac148f5f75d17a49887d0 100644
|
| --- a/pkg/analysis_server/test/socket_server_test.dart
|
| +++ b/pkg/analysis_server/test/socket_server_test.dart
|
| @@ -28,10 +28,10 @@ class SocketServerTest {
|
| MockServerChannel channel = new MockServerChannel();
|
| server.createAnalysisServer(channel);
|
| channel.expectMsgCount(notificationCount: 1);
|
| - expect(channel.notificationsReceived[0].event, NOTIFICATION_CONNECTED);
|
| + expect(channel.notificationsReceived[0].event, SERVER_CONNECTED);
|
| expect(channel.notificationsReceived[0].params, isEmpty);
|
| return channel.sendRequest(
|
| - new Request('0', METHOD_SHUTDOWN)
|
| + new Request('0', SERVER_SHUTDOWN)
|
| ).then((Response response) {
|
| expect(response.id, equals('0'));
|
| expect(response.error, isNull);
|
| @@ -44,7 +44,7 @@ class SocketServerTest {
|
| MockServerChannel channel1 = new MockServerChannel();
|
| MockServerChannel channel2 = new MockServerChannel();
|
| server.createAnalysisServer(channel1);
|
| - expect(channel1.notificationsReceived[0].event, NOTIFICATION_CONNECTED);
|
| + expect(channel1.notificationsReceived[0].event, SERVER_CONNECTED);
|
| expect(channel1.notificationsReceived[0].params, isEmpty);
|
| server.createAnalysisServer(channel2);
|
| channel1.expectMsgCount(notificationCount: 1);
|
| @@ -53,7 +53,7 @@ class SocketServerTest {
|
| expect(channel2.responsesReceived[0].error, isNotNull);
|
| expect(channel2.responsesReceived[0].error.code, equals(
|
| RequestError.CODE_SERVER_ALREADY_STARTED));
|
| - channel2.sendRequest(new Request('0', METHOD_SHUTDOWN)).then((Response response) {
|
| + channel2.sendRequest(new Request('0', SERVER_SHUTDOWN)).then((Response response) {
|
| expect(response.id, equals('0'));
|
| expect(response.error, isNotNull);
|
| expect(response.error.code, equals(
|
|
|