diff --git a/CHANGELOG.md b/CHANGELOG.md index 857582c0..e0640e21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 5.1.1 + +- Enable Unix domain sockets (UDS) tests on Windows, and modify README to + indicate UDS are supported (requires Dart SDK >= 3.11.0, minimum version + in `pubspec.yaml` is not bumped as later SDK are only needed for UDS support). + ## 5.1.0 - Added `protos.dart` library. diff --git a/README.md b/README.md index eb6017f5..7afe9603 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ For complete documentation, see [Dart gRPC](https://grpc.io/docs/languages/dart) - [Flutter](https://flutter.dev) > **Note:** [grpc-web](https://github.com/grpc/grpc-web) is supported by `package:grpc/grpc_web.dart`. -> **UDS-unix domain socket** is supported with sdk version >= 2.8.0. +> **UDS-unix domain socket** is supported with sdk version >= 2.8.0 (>= 3.11.0 on Windows). ## Contributing diff --git a/pubspec.yaml b/pubspec.yaml index ef6e5517..005e9e22 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: grpc -version: 5.1.0 +version: 5.1.1 description: Dart implementation of gRPC, a high performance, open-source universal RPC framework. repository: https://github.com/grpc/grpc-dart diff --git a/test/common.dart b/test/common.dart index a51d4ea6..1f3c3a2d 100644 --- a/test/common.dart +++ b/test/common.dart @@ -18,10 +18,6 @@ import 'package:test/test.dart'; /// Test functionality for Unix domain socket. void testUds(String name, FutureOr Function(InternetAddress) testCase) { - if (Platform.isWindows) { - return; - } - test(name, () async { final tempDir = await Directory.systemTemp.createTemp(); final address = InternetAddress( diff --git a/test/round_trip_test.dart b/test/round_trip_test.dart index ab3addb7..5023766e 100644 --- a/test/round_trip_test.dart +++ b/test/round_trip_test.dart @@ -158,7 +158,7 @@ Future main() async { 2, 3, ]); - server.shutdown(); + await server.shutdown(); }); testTcpAndUds('round trip with outgoing and incoming compression', ( @@ -223,7 +223,7 @@ Future main() async { 2, 3, ]); - server.shutdown(); + await server.shutdown(); }); test('exception in onMetadataException', () async {