Index: pkg/telemetry/test/crash_reporting_test.dart |
diff --git a/pkg/telemetry/test/crash_reporting_test.dart b/pkg/telemetry/test/crash_reporting_test.dart |
index a6241216ff012c47d200faec41951d6c5a587803..1a877487e317f82d9c7b9a3b0e59f8b4bf3b050d 100644 |
--- a/pkg/telemetry/test/crash_reporting_test.dart |
+++ b/pkg/telemetry/test/crash_reporting_test.dart |
@@ -24,9 +24,10 @@ void main() { |
}); |
test('CrashReportSender', () async { |
- AnalyticsMock analytics = new AnalyticsMock(); |
- CrashReportSender sender = |
- new CrashReportSender(analytics, httpClient: mockClient); |
+ AnalyticsMock analytics = new AnalyticsMock()..enabled = false; |
+ CrashReportSender sender = new CrashReportSender( |
+ analytics.trackingId, analytics, |
+ httpClient: mockClient); |
await sender.sendReport('test-error', stackTrace: StackTrace.current); |