mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
print service url when connecting to web applications (#38823)
This commit is contained in:
parent
4d81b0c970
commit
7ed27b51a3
@ -203,6 +203,9 @@ class ResidentWebRunner extends ResidentRunner {
|
||||
});
|
||||
websocketUri = Uri.parse(_debugConnection.uri);
|
||||
}
|
||||
if (websocketUri != null) {
|
||||
printStatus('Debug service listening on $websocketUri.');
|
||||
}
|
||||
connectionInfoCompleter?.complete(
|
||||
DebugConnectionInfo(wsUri: websocketUri)
|
||||
);
|
||||
|
@ -88,12 +88,14 @@ void main() {
|
||||
|
||||
test('Can successfully run and connect to vmservice', () => testbed.run(() async {
|
||||
_setupMocks();
|
||||
final BufferLogger bufferLogger = logger;
|
||||
final Completer<DebugConnectionInfo> connectionInfoCompleter = Completer<DebugConnectionInfo>();
|
||||
unawaited(residentWebRunner.run(
|
||||
connectionInfoCompleter: connectionInfoCompleter,
|
||||
));
|
||||
final DebugConnectionInfo debugConnectionInfo = await connectionInfoCompleter.future;
|
||||
|
||||
expect(bufferLogger.statusText, contains('Debug service listening on ws://127.0.0.1/abcd/'));
|
||||
expect(debugConnectionInfo.wsUri.toString(), 'ws://127.0.0.1/abcd/');
|
||||
}));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user