[reland] Update helper message for --suppress-analytics (#125145)

Relanding: https://github.com/flutter/flutter/pull/124810

Fixes: https://github.com/flutter/flutter/issues/124808
This commit is contained in:
Elias Yishak
2023-04-19 14:51:08 -04:00
committed by GitHub
parent 4c6929d4c9
commit ca3a900d5d
3 changed files with 7 additions and 39 deletions

View File

@@ -346,34 +346,6 @@ void main() {
ProcessManager: () => FakeProcessManager.any(),
},
);
testUsingContext(
'legacy analytics disabled will disable new analytics',
() async {
io.setExitFunctionForTests((int exitCode) {});
await runner.run(
<String>[],
() => <FlutterCommand>[],
// This flutterVersion disables crash reporting.
flutterVersion: '[user-branch]/',
shutdownHooks: ShutdownHooks(),
);
expect(globals.flutterUsage.enabled, false);
expect(globals.analytics.telemetryEnabled, false);
expect(testLogger.statusText.contains(
'Please note that analytics '
'reporting was already disabled'), true);
},
overrides: <Type, Generator>{
Analytics: () => FakeAnalytics(),
FileSystem: () => MemoryFileSystem.test(),
ProcessManager: () => FakeProcessManager.any(),
Usage: () => legacyAnalytics,
},
);
});
}