Index: pkg/analysis_server/test/integration/server/set_subscriptions_invalid_service_test.dart |
diff --git a/pkg/analysis_server/test/integration/server/set_subscriptions_invalid_service_test.dart b/pkg/analysis_server/test/integration/server/set_subscriptions_invalid_service_test.dart |
index bcf15dbdfbde94cff833697e4ada2926fedea6e3..af778cf98d43df4284d4916139357c2ab69cf749 100644 |
--- a/pkg/analysis_server/test/integration/server/set_subscriptions_invalid_service_test.dart |
+++ b/pkg/analysis_server/test/integration/server/set_subscriptions_invalid_service_test.dart |
@@ -7,9 +7,11 @@ library test.integration.server.set.subscriptions.invalid.service; |
import 'package:test_reflective_loader/test_reflective_loader.dart'; |
import 'package:unittest/unittest.dart'; |
+import '../../utils.dart'; |
import '../integration_tests.dart'; |
main() { |
+ initializeTestEnvironment(); |
defineReflectiveTests(Test); |
} |
@@ -18,9 +20,9 @@ class Test extends AbstractAnalysisServerIntegrationTest { |
test_setSubscriptions_invalidService() { |
// TODO(paulberry): verify that if an invalid service is specified, the |
// current subscriptions are unchanged. |
- return server |
- .send("server.setSubscriptions", {'subscriptions': ['bogus']}) |
- .then((_) { |
+ return server.send("server.setSubscriptions", { |
+ 'subscriptions': ['bogus'] |
+ }).then((_) { |
fail('setSubscriptions should have produced an error'); |
}, onError: (error) { |
// The expected error occurred. |