65c4d768f1
Changes are reformatting and using the nullable list element operator. Change-Id: Iea1f4d2fcb06056f14804c8fe8b33c0b4d9037f2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/477561 Commit-Queue: Sigurd Meldgaard <sigurdm@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com>
37 lines
998 B
Dart
37 lines
998 B
Dart
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
import 'dart:convert';
|
|
import 'dart:io';
|
|
|
|
import 'package:test/test.dart';
|
|
|
|
import '../utils.dart' as utils;
|
|
|
|
void main() {
|
|
utils.ensureRunFromSdkBinDart();
|
|
|
|
group('tooling-daemon', () {
|
|
final dartToolingDaemonRegExp = RegExp(
|
|
r'The Dart Tooling Daemon is listening on ws://(127.0.0.1:.*)',
|
|
);
|
|
Process? process;
|
|
|
|
tearDown(() {
|
|
process?.kill();
|
|
process = null;
|
|
});
|
|
|
|
test('starts up', () async {
|
|
final project = utils.project();
|
|
process = await project.start(['tooling-daemon']);
|
|
final stdout = process!.stdout
|
|
.transform<String>(utf8.decoder)
|
|
.transform<String>(const LineSplitter());
|
|
|
|
expect(await stdout.first, contains(dartToolingDaemonRegExp));
|
|
});
|
|
}, timeout: utils.longTimeout);
|
|
}
|