Skip to content

Commit c9b5b6f

Browse files
committed
fmt
1 parent 39c4b31 commit c9b5b6f

File tree

1 file changed

+23
-14
lines changed

1 file changed

+23
-14
lines changed

pkgs/test_core/lib/src/runner/vm/platform.dart

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class VMPlatform extends PlatformPlugin {
111111
if (platform.compiler == Compiler.exe) {
112112
throw UnsupportedError(
113113
'Unable to debug tests compiled to `exe` (tried to debug $path with '
114-
'the `exe` compiler).');
114+
'the `exe` compiler).');
115115
}
116116
var info =
117117
await Service.controlWebServer(enable: true, silenceOutput: true);
@@ -123,8 +123,7 @@ class VMPlatform extends PlatformPlugin {
123123
client = await vmServiceConnectUri(_wsUriFor(serverUri).toString());
124124
var isolateNumber = int.parse(isolateID.split('/').last);
125125
isolateRef = (await client.getVM())
126-
.isolates!
127-
.firstWhere((isolate) => isolate.number == isolateNumber.toString());
126+
.isolates!.firstWhere((isolate) => isolate.number == isolateNumber.toString());
128127
await client.setName(isolateRef.id!, path);
129128
var libraryRef = (await client.getIsolate(isolateRef.id!))
130129
.libraries!
@@ -180,8 +179,8 @@ class VMPlatform extends PlatformPlugin {
180179
Future<String> _compileToNative(String path, Metadata suiteMetadata) async {
181180
var bootstrapPath = await _bootstrapNativeTestFile(
182181
path,
183-
suiteMetadata.languageVersionComment ??
184-
await rootPackageLanguageVersionComment);
182+
suiteMetadata.languageVersionComment ??
183+
await rootPackageLanguageVersionComment);
185184
var output = File(p.setExtension(bootstrapPath, '.exe'));
186185
var processResult = await Process.run(Platform.resolvedExecutable, [
187186
'compile',
@@ -221,8 +220,8 @@ stderr: ${processResult.stderr}''');
221220
Compiler.source => _spawnIsolateWithUri(
222221
await _bootstrapIsolateTestFile(
223222
path,
224-
suiteMetadata.languageVersionComment ??
225-
await rootPackageLanguageVersionComment),
223+
suiteMetadata.languageVersionComment ??
224+
await rootPackageLanguageVersionComment),
226225
message),
227226
_ => throw StateError(
228227
'Unsupported compiler $compiler for the VM platform'),
@@ -246,9 +245,14 @@ stderr: ${processResult.stderr}''');
246245

247246
/// Runs [uri] in an isolate, passing [message].
248247
Future<Isolate> _spawnIsolateWithUri(Uri uri, SendPort message) async {
249-
return await Isolate.spawnUri(uri, [], message,
250-
packageConfig: await packageConfigUri, checked: true,
251-
debugName: 'test_main');
248+
return await Isolate.spawnUri(
249+
uri,
250+
[],
251+
message,
252+
packageConfig: await packageConfigUri,
253+
checked: true,
254+
debugName: 'test_main',
255+
);
252256
}
253257

254258
Future<Isolate> _spawnPrecompiledIsolate(String testPath, SendPort message,
@@ -285,9 +289,14 @@ stderr: ${processResult.stderr}''');
285289
packageConfig = null;
286290
}
287291
}
288-
return await Isolate.spawnUri(testUri, [], message,
289-
packageConfig: packageConfig?.uri, checked: true,
290-
debugName: 'test_main');
292+
return await Isolate.spawnUri(
293+
testUri,
294+
[],
295+
message,
296+
packageConfig: packageConfig?.uri,
297+
checked: true,
298+
debugName: 'test_main',
299+
);
291300
}
292301

293302
/// Bootstraps the test at [testPath] and writes its contents to a temporary
@@ -346,7 +355,7 @@ Uri _wsUriFor(Uri observatoryUrl) =>
346355
Uri _observatoryUrlFor(Uri base, String isolateId, String id) => base.replace(
347356
fragment: Uri(
348357
path: '/inspect',
349-
queryParameters: {'isolateId': isolateId, 'objectId': id}).toString());
358+
queryParameters: {'isolateId': isolateId, 'objectId': id}).toString());
350359

351360
var _hasRegistered = false;
352361
void _setupPauseAfterTests() {

0 commit comments

Comments
 (0)