Skip to content

Commit

Permalink
Bump and fix lints (dart-lang/web_socket_channel#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored May 22, 2024
1 parent f7fd087 commit 6ef94db
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion pkgs/web_socket_channel/lib/status.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/// channel.close(status.goingAway);
/// }
/// ```
library web_socket_channel.status;
library;

import 'dart:core';

Expand Down
2 changes: 1 addition & 1 deletion pkgs/web_socket_channel/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
20 changes: 8 additions & 12 deletions pkgs/web_socket_channel/test/io_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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 {
Expand Down

0 comments on commit 6ef94db

Please sign in to comment.