From 6ef94db081434873deadc447fc01131dab45261c Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Wed, 22 May 2024 14:08:13 -0700 Subject: [PATCH] Bump and fix lints (dart-lang/web_socket_channel#366) --- pkgs/web_socket_channel/lib/status.dart | 2 +- pkgs/web_socket_channel/pubspec.yaml | 2 +- pkgs/web_socket_channel/test/io_test.dart | 20 ++++++++------------ 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/pkgs/web_socket_channel/lib/status.dart b/pkgs/web_socket_channel/lib/status.dart index 121c2cc40d..178e7d37d0 100644 --- a/pkgs/web_socket_channel/lib/status.dart +++ b/pkgs/web_socket_channel/lib/status.dart @@ -16,7 +16,7 @@ /// channel.close(status.goingAway); /// } /// ``` -library web_socket_channel.status; +library; import 'dart:core'; diff --git a/pkgs/web_socket_channel/pubspec.yaml b/pkgs/web_socket_channel/pubspec.yaml index 82a0219b71..b745d7381f 100644 --- a/pkgs/web_socket_channel/pubspec.yaml +++ b/pkgs/web_socket_channel/pubspec.yaml @@ -17,5 +17,5 @@ dependencies: web_socket: ^0.1.3 dev_dependencies: - dart_flutter_team_lints: ^2.0.0 + dart_flutter_team_lints: ^3.0.0 test: ^1.25.2 diff --git a/pkgs/web_socket_channel/test/io_test.dart b/pkgs/web_socket_channel/test/io_test.dart index 1b7ae35611..2d5d578083 100644 --- a/pkgs/web_socket_channel/test/io_test.dart +++ b/pkgs/web_socket_channel/test/io_test.dart @@ -67,12 +67,10 @@ void main() { channel.sink.add('ping'); - channel.stream.listen( - expectAsync1((message) { - expect(message, equals('pong')); - channel.sink.close(3678, 'raisin'); - }, count: 1), - onDone: expectAsync0(() {})); + channel.stream.listen(expectAsync1((message) { + expect(message, equals('pong')); + channel.sink.close(3678, 'raisin'); + }), onDone: expectAsync0(() {})); }); test('.connect communicates immediately using platform independent api', @@ -94,12 +92,10 @@ void main() { channel.sink.add('ping'); - channel.stream.listen( - expectAsync1((message) { - expect(message, equals('pong')); - channel.sink.close(3678, 'raisin'); - }, count: 1), - onDone: expectAsync0(() {})); + channel.stream.listen(expectAsync1((message) { + expect(message, equals('pong')); + channel.sink.close(3678, 'raisin'); + }), onDone: expectAsync0(() {})); }); test('.connect with an immediate call to close', () async {