From 7409a3e5bf9e4647995a3bd8d767009d264a2007 Mon Sep 17 00:00:00 2001 From: miguelcmedeiros Date: Fri, 20 Nov 2020 10:48:13 +0100 Subject: [PATCH] Close streams in plugin_controller_test.dart --- pubspec.lock | 6 +++--- test/plugin_controller_test.dart | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index 88a71cec6..28dafdb2b 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -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: @@ -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: @@ -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" diff --git a/test/plugin_controller_test.dart b/test/plugin_controller_test.dart index 1605dcfde..2e53fc601 100644 --- a/test/plugin_controller_test.dart +++ b/test/plugin_controller_test.dart @@ -46,6 +46,13 @@ void main() { ); }); + tearDown(() { + _connectedDeviceStreamController.close(); + _argsStreamController.close(); + _scanStreamController.close(); + _statusStreamController.close(); + }); + group('connect to device', () { pb.ConnectToDeviceRequest request; StreamSubscription subscription;