diff --git a/pkgs/test_core/lib/src/util/io.dart b/pkgs/test_core/lib/src/util/io.dart index 657ec1e39..3300e2c2c 100644 --- a/pkgs/test_core/lib/src/util/io.dart +++ b/pkgs/test_core/lib/src/util/io.dart @@ -160,7 +160,8 @@ void warn(String message, {bool? color, bool print = false}) { /// /// This is necessary for ensuring that our port binding isn't flaky for /// applications that don't print out the bound port. -Future getUnusedPort(FutureOr Function(int port) tryPort) async { +Future getUnusedPort( + FutureOr Function(int port) tryPort) async { T? value; await Future.doWhile(() async { value = await tryPort(await getUnsafeUnusedPort());