Implement isBroadcast for TestStdin (#48) In this package these streams are used with `StreamQueue` which now calls `isBroadcast` to start listening eagerly. Implement that member so that these classes stay compatible with `StreamQueue`.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f74ad1..dcbcd9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md
@@ -1,3 +1,7 @@ +## 0.1.25 + +* Add `isBroadcast` implementation to `TestStdin` classes. + ## 0.1.24 * Check for closed port when trying to read a response in
diff --git a/lib/testing.dart b/lib/testing.dart index 037aa1e..1227ab2 100644 --- a/lib/testing.dart +++ b/lib/testing.dart
@@ -43,6 +43,9 @@ } @override + bool get isBroadcast => false; + + @override void noSuchMethod(Invocation invocation) { throw StateError('Unexpected invocation ${invocation.memberName}.'); } @@ -76,6 +79,9 @@ } @override + bool get isBroadcast => false; + + @override void noSuchMethod(Invocation invocation) { throw StateError('Unexpected invocation ${invocation.memberName}.'); }
diff --git a/pubspec.yaml b/pubspec.yaml index e8ed964..e37fa77 100644 --- a/pubspec.yaml +++ b/pubspec.yaml
@@ -1,5 +1,5 @@ name: bazel_worker -version: 0.1.24 +version: 0.1.25 description: Tools for creating a bazel persistent worker. homepage: https://github.com/dart-lang/bazel_worker