Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump and fix lints #366

Merged
merged 1 commit into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 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 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 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