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

Side by Side Diff: pkg/analysis_server/test/integration/server/set_subscriptions_test.dart

Issue 2710193002: Update the analysis server integration tests to always run on the analysis driver. (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:analysis_server/plugin/protocol/protocol.dart'; 7 import 'package:analysis_server/plugin/protocol/protocol.dart';
8 import 'package:test/test.dart'; 8 import 'package:test/test.dart';
9 import 'package:test_reflective_loader/test_reflective_loader.dart'; 9 import 'package:test_reflective_loader/test_reflective_loader.dart';
10 10
11 import '../integration_tests.dart'; 11 import '../integration_tests.dart';
12 12
13 main() { 13 main() {
14 defineReflectiveSuite(() { 14 defineReflectiveSuite(() {
15 defineReflectiveTests(SetSubscriptionsTest); 15 defineReflectiveTests(SetSubscriptionsTest);
16 defineReflectiveTests(SetSubscriptionsTest_Driver);
17 }); 16 });
18 } 17 }
19 18
20 class AbstractSetSubscriptionsTest 19 @reflectiveTest
21 extends AbstractAnalysisServerIntegrationTest { 20 class SetSubscriptionsTest extends AbstractAnalysisServerIntegrationTest {
22 test_setSubscriptions() { 21 test_setSubscriptions() {
23 bool statusReceived = false; 22 bool statusReceived = false;
24 Completer analysisBegun = new Completer(); 23 Completer analysisBegun = new Completer();
25 onServerStatus.listen((_) { 24 onServerStatus.listen((_) {
26 statusReceived = true; 25 statusReceived = true;
27 }); 26 });
28 onAnalysisErrors.listen((_) { 27 onAnalysisErrors.listen((_) {
29 if (!analysisBegun.isCompleted) { 28 if (!analysisBegun.isCompleted) {
30 analysisBegun.complete(); 29 analysisBegun.complete();
31 } 30 }
(...skipping 20 matching lines...) Expand all
52 var y; 51 var y;
53 }'''); 52 }''');
54 // Analysis should eventually complete, and we should be notified 53 // Analysis should eventually complete, and we should be notified
55 // about it. 54 // about it.
56 return analysisFinished; 55 return analysisFinished;
57 }); 56 });
58 }); 57 });
59 }); 58 });
60 } 59 }
61 } 60 }
62
63 @reflectiveTest
64 class SetSubscriptionsTest extends AbstractSetSubscriptionsTest {}
65
66 @reflectiveTest
67 class SetSubscriptionsTest_Driver extends AbstractSetSubscriptionsTest {
68 @override
69 bool get enableNewAnalysisDriver => true;
70
71 @failingTest
72 @override
73 test_setSubscriptions() {
74 // This test times out on the bots and has been disabled to keep them green.
75 // We need to discover the cause and re-enable it.
76 fail('Timed out');
77 }
78 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698