Update helper message for --suppress-analytics (#124810)
Fixes: https://github.com/flutter/flutter/issues/124808
This commit is contained in:
@@ -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,
|
||||
},
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user