Skip to content

Commit 8e81324

Browse files
authored
test: Remove useless StreamSubscription from e2e tests (#9674)
1 parent 2d2b5b0 commit 8e81324

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

packages/firebase_auth/firebase_auth_platform_interface/test/method_channel_tests/method_channel_firebase_auth_test.dart

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,12 +1006,6 @@ void main() {
10061006
});
10071007

10081008
group('authStateChanges()', () {
1009-
StreamSubscription<UserPlatform?>? subscription;
1010-
1011-
tearDown(() {
1012-
subscription?.cancel();
1013-
});
1014-
10151009
test('returns [Stream<UserPlatform>]', () async {
10161010
// Checks that `authStateChanges` does not throw UnimplementedError
10171011
expect(auth.authStateChanges(), isNotNull);
@@ -1051,12 +1045,6 @@ void main() {
10511045
});
10521046

10531047
group('idTokenChanges()', () {
1054-
StreamSubscription<UserPlatform?>? subscription;
1055-
1056-
tearDown(() {
1057-
subscription?.cancel();
1058-
});
1059-
10601048
test('returns [Stream<UserPlatform>]', () async {
10611049
// Checks that `idTokenChanges` does not throw UnimplementedError
10621050
expect(auth.idTokenChanges(), isNotNull);
@@ -1097,12 +1085,6 @@ void main() {
10971085
});
10981086

10991087
group('userChanges()', () {
1100-
StreamSubscription<UserPlatform?>? subscription;
1101-
1102-
tearDown(() {
1103-
subscription?.cancel();
1104-
});
1105-
11061088
test('returns [Stream<UserPlatform>]', () async {
11071089
// Checks that `userChanges` does not throw UnimplementedError
11081090
expect(auth.userChanges(), isNotNull);

packages/firebase_dynamic_links/firebase_dynamic_links_platform_interface/test/method_channel_tests/method_channel_firebase_dynamic_links_test.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// Copyright 2021, the Chromium project authors. Please see the AUTHORS file
33
// for details. All rights reserved. Use of this source code is governed by a
44
// BSD-style license that can be found in the LICENSE file.
5-
import 'dart:async';
6-
75
import 'package:firebase_core/firebase_core.dart';
86
import 'package:firebase_dynamic_links_platform_interface/firebase_dynamic_links_platform_interface.dart';
97
import 'package:firebase_dynamic_links_platform_interface/src/method_channel/method_channel_firebase_dynamic_links.dart';
@@ -293,12 +291,6 @@ void main() {
293291
});
294292

295293
group('onLink()', () {
296-
StreamSubscription<PendingDynamicLinkData?>? subscription;
297-
298-
tearDown(() {
299-
subscription?.cancel();
300-
});
301-
302294
test('returns [Stream<PendingDynamicLinkData>]', () async {
303295
// Checks that `onLink` does not throw UnimplementedError
304296
expect(dynamicLinks.onLink, isNotNull);

0 commit comments

Comments
 (0)