Skip to content

Commit

Permalink
Merge pull request apple#148 from PhilipsHue/close-streams-in-test
Browse files Browse the repository at this point in the history
Close streams in plugin_controller_test.dart
  • Loading branch information
miguelcmedeiros authored Nov 20, 2020
2 parents 0776d14 + 7409a3e commit 3e70254
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ packages:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0-nullsafety.3"
version: "1.3.0-nullsafety.4"
mime:
dependency: transitive
description:
Expand Down Expand Up @@ -435,7 +435,7 @@ packages:
name: stack_trace
url: "https://pub.dartlang.org"
source: hosted
version: "1.10.0-nullsafety.1"
version: "1.10.0-nullsafety.4"
stream_channel:
dependency: transitive
description:
Expand Down Expand Up @@ -514,5 +514,5 @@ packages:
source: hosted
version: "2.2.1"
sdks:
dart: ">=2.10.0-110 <2.11.0"
dart: ">=2.10.0-110 <=2.11.0-234.0.dev"
flutter: ">=1.10.0"
7 changes: 7 additions & 0 deletions test/plugin_controller_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ void main() {
);
});

tearDown(() {
_connectedDeviceStreamController.close();
_argsStreamController.close();
_scanStreamController.close();
_statusStreamController.close();
});

group('connect to device', () {
pb.ConnectToDeviceRequest request;
StreamSubscription subscription;
Expand Down

0 comments on commit 3e70254

Please sign in to comment.