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

Unified Diff: pkg/analysis_server/test/integration/server/set_subscriptions_invalid_service_test.dart

Issue 1266923004: More fixes for failures on the Windows bot (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
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.

Powered by Google App Engine
This is Rietveld 408576698