Index: pkg/analyzer/test/source/analysis_options_provider_test.dart |
diff --git a/pkg/analyzer/test/source/analysis_options_provider_test.dart b/pkg/analyzer/test/source/analysis_options_provider_test.dart |
index 80bf2ad72e343dcd17f21f1a59f2a26663abc3c4..a251770d8568357de6f234e392e527a7916b18d3 100644 |
--- a/pkg/analyzer/test/source/analysis_options_provider_test.dart |
+++ b/pkg/analyzer/test/source/analysis_options_provider_test.dart |
@@ -52,6 +52,7 @@ main() { |
var optionsProvider = new AnalysisOptionsProvider(); |
Map<String, YamlNode> options = |
optionsProvider.getOptions(resourceProvider.getFolder('/')); |
+ expect(options, isNotNull); |
}); |
}); |
group('AnalysisOptionsProvider', () { |
@@ -67,7 +68,8 @@ main() { |
try { |
Map<String, YamlNode> options = |
optionsProvider.getOptions(resourceProvider.getFolder('/')); |
- } catch (e, st) { |
+ expect(options, isNotNull); |
+ } catch (e) { |
exceptionCaught = true; |
} |
expect(exceptionCaught, isTrue); |