OLD | NEW |
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 { |
| 21 @failingTest |
22 test_setSubscriptions() { | 22 test_setSubscriptions() { |
| 23 // This test times out on the bots and has been disabled to keep them green. |
| 24 // We need to discover the cause and re-enable it. |
| 25 |
| 26 fail( |
| 27 'This test times out on the bots and has been disabled to keep them gree
n.' |
| 28 'We need to discover the cause and re-enable it.'); |
| 29 |
23 bool statusReceived = false; | 30 bool statusReceived = false; |
24 Completer analysisBegun = new Completer(); | 31 Completer analysisBegun = new Completer(); |
25 onServerStatus.listen((_) { | 32 onServerStatus.listen((_) { |
26 statusReceived = true; | 33 statusReceived = true; |
27 }); | 34 }); |
28 onAnalysisErrors.listen((_) { | 35 onAnalysisErrors.listen((_) { |
29 if (!analysisBegun.isCompleted) { | 36 if (!analysisBegun.isCompleted) { |
30 analysisBegun.complete(); | 37 analysisBegun.complete(); |
31 } | 38 } |
32 }); | 39 }); |
(...skipping 19 matching lines...) Expand all Loading... |
52 var y; | 59 var y; |
53 }'''); | 60 }'''); |
54 // Analysis should eventually complete, and we should be notified | 61 // Analysis should eventually complete, and we should be notified |
55 // about it. | 62 // about it. |
56 return analysisFinished; | 63 return analysisFinished; |
57 }); | 64 }); |
58 }); | 65 }); |
59 }); | 66 }); |
60 } | 67 } |
61 } | 68 } |
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 } | |
OLD | NEW |