Update comment referring to closed issue (#1359)
An isolate with syntax errors won't run at all, however in order to
capture all `print` output followed by long running synchronous work the
channel should stay sync.
diff --git a/pkgs/test_api/CHANGELOG.md b/pkgs/test_api/CHANGELOG.md
index 48a4ba5..676a003 100644
--- a/pkgs/test_api/CHANGELOG.md
+++ b/pkgs/test_api/CHANGELOG.md
@@ -1,3 +1,5 @@
+## 0.2.19-nullsafety.5-dev
+
## 0.2.19-nullsafety.4
* Allow prerelease versions of the 2.12 sdk.
diff --git a/pkgs/test_api/lib/src/remote_listener.dart b/pkgs/test_api/lib/src/remote_listener.dart
index 621726c..7eab7fe 100644
--- a/pkgs/test_api/lib/src/remote_listener.dart
+++ b/pkgs/test_api/lib/src/remote_listener.dart
@@ -46,9 +46,8 @@
/// for this worker.
static StreamChannel<Object?> start(Function Function() getMain,
{bool hidePrints = true, Future Function()? beforeLoad}) {
- // This has to be synchronous to work around sdk#25745. Otherwise, there'll
- // be an asynchronous pause before a syntax error notification is sent,
- // which will cause the send to fail entirely.
+ // Synchronous in order to allow `print` output to show up immediately, even
+ // if they are followed by long running synchronous work.
var controller =
StreamChannelController<Object?>(allowForeignErrors: false, sync: true);
var channel = MultiChannel<Object?>(controller.local);
diff --git a/pkgs/test_api/pubspec.yaml b/pkgs/test_api/pubspec.yaml
index 2c8d7f1..246133e 100644
--- a/pkgs/test_api/pubspec.yaml
+++ b/pkgs/test_api/pubspec.yaml
@@ -1,5 +1,5 @@
name: test_api
-version: 0.2.19-nullsafety.4
+version: 0.2.19-nullsafety.5-dev
description: A library for writing Dart tests.
homepage: https://github.com/dart-lang/test/blob/master/pkgs/test_api