mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Disable DevTools when running the hot restart integration test in flutter_tools (#153247)
When DevTools is active HotRunner.attach makes a deferred RPC to a DevTools service. That RPC appears to cause issues if it executes at the wrong time during the hot restart. Passing the --no-devtools flag works around this by disabling the RPC. See https://github.com/flutter/flutter/issues/153049
This commit is contained in:
parent
dae3a87d93
commit
5a04b4dda9
@ -81,7 +81,7 @@ void main() {
|
||||
});
|
||||
|
||||
testWithoutContext('hot restart works without error', () async {
|
||||
await flutter.run(verbose: true);
|
||||
await flutter.run(verbose: true, noDevtools: true);
|
||||
await flutter.hotRestart();
|
||||
});
|
||||
|
||||
|
@ -510,6 +510,7 @@ class FlutterRunTestDriver extends FlutterTestDriver {
|
||||
bool expressionEvaluation = true,
|
||||
bool structuredErrors = false,
|
||||
bool serveObservatory = false,
|
||||
bool noDevtools = false,
|
||||
bool verbose = false,
|
||||
String? script,
|
||||
List<String>? additionalCommandArgs,
|
||||
@ -521,6 +522,7 @@ class FlutterRunTestDriver extends FlutterTestDriver {
|
||||
'--disable-service-auth-codes',
|
||||
'--machine',
|
||||
if (!spawnDdsInstance) '--no-dds',
|
||||
if (noDevtools) '--no-devtools',
|
||||
'--${serveObservatory ? '' : 'no-'}serve-observatory',
|
||||
...getLocalEngineArguments(),
|
||||
'-d',
|
||||
|
Loading…
Reference in New Issue
Block a user