This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +13
-27
lines changed Expand file tree Collapse file tree 5 files changed +13
-27
lines changed Original file line number Diff line number Diff line change @@ -162,20 +162,6 @@ class GetErrorsTest_UseCFE extends GetErrorsTest {
162
162
@override
163
163
test_fileDoesNotExist () => super .test_fileDoesNotExist ();
164
164
165
- @failingTest
166
- @override
167
- test_hasErrors () {
168
- fail ('Flaky' );
169
- // return super.test_hasErrors();
170
- }
171
-
172
- @failingTest
173
- @override
174
- test_noErrors () {
175
- fail ('Flaky' );
176
- // return super.test_noErrors();
177
- }
178
-
179
165
@override
180
166
test_removeContextAfterRequest () => super .test_removeContextAfterRequest ();
181
167
}
Original file line number Diff line number Diff line change @@ -604,11 +604,6 @@ main() {
604
604
class ExtractLocalVariableTest_UseCFE extends ExtractLocalVariableTest {
605
605
@override
606
606
bool get useCFE => true ;
607
-
608
- @failingTest
609
- @override
610
- test_resetOnAnalysisSetChanged_overlay () =>
611
- super .test_resetOnAnalysisSetChanged_overlay ();
612
607
}
613
608
614
609
@reflectiveTest
Original file line number Diff line number Diff line change @@ -260,9 +260,4 @@ class C {}
260
260
class SortMembersTest_UseCFE extends SortMembersTest {
261
261
@override
262
262
bool get useCFE => true ;
263
-
264
- @failingTest
265
- @override
266
- test_OK_directives_withAnnotation () =>
267
- super .test_OK_directives_withAnnotation ();
268
263
}
Original file line number Diff line number Diff line change @@ -57,7 +57,10 @@ class MockServerChannel implements ServerCommunicationChannel {
57
57
List <Notification > notificationsReceived = [];
58
58
bool _closed = false ;
59
59
60
+ String name;
61
+
60
62
MockServerChannel ();
63
+
61
64
@override
62
65
void close () {
63
66
_closed = true ;
@@ -83,6 +86,8 @@ class MockServerChannel implements ServerCommunicationChannel {
83
86
}
84
87
notificationsReceived.add (notification);
85
88
if (errorCompleter != null && notification.event == 'server.error' ) {
89
+ print (
90
+ '[server.error] test: $name message: ${notification .params ['message' ]}' );
86
91
errorCompleter.completeError (
87
92
new ServerError (notification.params['message' ]),
88
93
new StackTrace .fromString (notification.params['stackTrace' ]));
@@ -141,8 +146,12 @@ class MockServerChannel implements ServerCommunicationChannel {
141
146
Future <Response > response =
142
147
responseController.stream.firstWhere ((response) => response.id == id);
143
148
if (throwOnError) {
144
- errorCompleter ?? = new Completer <Response >();
145
- return Future .any ([response, errorCompleter.future]);
149
+ errorCompleter = new Completer <Response >();
150
+ try {
151
+ return Future .any ([response, errorCompleter.future]);
152
+ } finally {
153
+ errorCompleter = null ;
154
+ }
146
155
}
147
156
return response;
148
157
}
Original file line number Diff line number Diff line change @@ -1087,7 +1087,8 @@ class GetTypeHierarchyTest_UseCFE extends GetTypeHierarchyTest {
1087
1087
@failingTest
1088
1088
@override
1089
1089
test_class_extendsTypeB () {
1090
- return callFailingTest (super .test_class_extendsTypeB);
1090
+ fail ('Timeout' );
1091
+ // return callFailingTest(super.test_class_extendsTypeB);
1091
1092
}
1092
1093
1093
1094
@failingTest
You can’t perform that action at this time.
0 commit comments