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

Unified Diff: pkg/analysis_server/test/integration/edit/get_fixes_test.dart

Issue 2910683002: Update some of the fixes to use ChangeBuilder (Closed)
Patch Set: Adjusted after API change, and bug fix Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/test/integration/edit/get_fixes_test.dart
diff --git a/pkg/analysis_server/test/integration/edit/get_fixes_test.dart b/pkg/analysis_server/test/integration/edit/get_fixes_test.dart
index e32ce8f4673c1c6b79d394a5ce41fe528a9cc50a..eccbe2916bf82c4f6876101631ecde4b3d2725a2 100644
--- a/pkg/analysis_server/test/integration/edit/get_fixes_test.dart
+++ b/pkg/analysis_server/test/integration/edit/get_fixes_test.dart
@@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+import 'dart:async';
+
import 'package:analysis_server/protocol/protocol_generated.dart';
import 'package:analyzer_plugin/protocol/protocol_common.dart';
import 'package:test/test.dart';
@@ -47,6 +49,9 @@ Future f;
writeFile(pathname, text);
await analysisFinished;
+ // The errors (at least sometimes) don't get sent until after analysis has
+ // completed. Wait long enough to see whether new errors are reported.
+ await new Future.delayed(new Duration(milliseconds: 1000));
expect(currentAnalysisErrors[pathname], isEmpty);
}

Powered by Google App Engine
This is Rietveld 408576698