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

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

Issue 2820893002: Make the analysis server integration tests driver only. (Closed)
Patch Set: uncomment test code Created 3 years, 8 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:test/test.dart'; 7 import 'package:test/test.dart';
8 import 'package:test_reflective_loader/test_reflective_loader.dart'; 8 import 'package:test_reflective_loader/test_reflective_loader.dart';
9 9
10 import '../integration_tests.dart'; 10 import '../integration_tests.dart';
11 11
12 main() { 12 main() {
13 defineReflectiveSuite(() { 13 defineReflectiveSuite(() {
14 defineReflectiveTests(ShutdownTest); 14 defineReflectiveTests(ShutdownTest);
15 defineReflectiveTests(ShutdownTest_Driver);
16 }); 15 });
17 } 16 }
18 17
19 class AbstractShutdownTest extends AbstractAnalysisServerIntegrationTest { 18 @reflectiveTest
19 class ShutdownTest extends AbstractAnalysisServerIntegrationTest {
20 test_shutdown() { 20 test_shutdown() {
21 return sendServerShutdown().then((_) { 21 return sendServerShutdown().then((_) {
22 return new Future.delayed(new Duration(seconds: 1)).then((_) { 22 return new Future.delayed(new Duration(seconds: 1)).then((_) {
23 sendServerGetVersion().then((_) { 23 sendServerGetVersion().then((_) {
24 fail('Server still alive after server.shutdown'); 24 fail('Server still alive after server.shutdown');
25 }); 25 });
26 // Give the server time to respond before terminating the test. 26 // Give the server time to respond before terminating the test.
27 return new Future.delayed(new Duration(seconds: 1)); 27 return new Future.delayed(new Duration(seconds: 1));
28 }); 28 });
29 }); 29 });
30 } 30 }
31 } 31 }
32
33 @reflectiveTest
34 class ShutdownTest extends AbstractShutdownTest {}
35
36 @reflectiveTest
37 class ShutdownTest_Driver extends AbstractShutdownTest {
38 @override
39 bool get enableNewAnalysisDriver => true;
40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698