| Index: pkg/analysis_server/test/integration/analysis/reanalyze_concurrent_test.dart
|
| diff --git a/pkg/analysis_server/test/integration/analysis/reanalyze_concurrent_test.dart b/pkg/analysis_server/test/integration/analysis/reanalyze_concurrent_test.dart
|
| index d84c165648d0609fbd1f43b61248b9ab5876dff1..25e8a4c0e6f39dc1f24e97f5ea7f17e5c137b1ea 100644
|
| --- a/pkg/analysis_server/test/integration/analysis/reanalyze_concurrent_test.dart
|
| +++ b/pkg/analysis_server/test/integration/analysis/reanalyze_concurrent_test.dart
|
| @@ -12,9 +12,6 @@ library test.integration.analysis.reanalyze_concurrent;
|
|
|
| import 'dart:async';
|
|
|
| -import 'package:analysis_server/src/protocol.dart';
|
| -import 'package:unittest/unittest.dart';
|
| -
|
| import '../../reflective_tests.dart';
|
| import '../integration_tests.dart';
|
|
|
| @@ -41,23 +38,8 @@ main() {}''';
|
| return onServerStatus.first.then((_) {
|
| sendAnalysisReanalyze();
|
| return analysisFinished.then((_) {
|
| - // Now that reanalysis has finished, no further analysis should occur.
|
| - onServerStatus.listen((ServerStatusParams data) {
|
| - if (data.analysis != null) {
|
| - if (data.analysis.isAnalyzing) {
|
| - // Most likely what happened is that the first reanalyze
|
| - // completed before the second reanalyze had a chance to start,
|
| - // and we are just now starting the second reanalyze. If this
|
| - // is the case, then the test isn't testing what it's meant to
|
| - // test (because we are trying to test what happens when one
|
| - // reanalyze starts while another is in progress). In which
|
| - // case we will need to give the analyzer more work to do.
|
| - fail('First reanalyze finished before second started.');
|
| - }
|
| - }
|
| - });
|
| - // Give the server an extra second to make sure it doesn't take any
|
| - // more actions.
|
| + // Now that reanalysis has finished, give the server an extra second
|
| + // to make sure it doesn't crash.
|
| return new Future.delayed(new Duration(seconds: 1));
|
| });
|
| });
|
|
|