Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,24 @@ void setupQueryTests() {
skip: defaultTargetPlatform != TargetPlatform.android,
);

test(
'cancels in-flight value listeners on distinct paths without error',
() async {
final errors = <Object>[];

for (var i = 0; i < 64; i++) {
final subscription = ref
.child('cancel-inflight-${i % 16}')
.onValue
.listen((_) {}, onError: errors.add);
await Future<void>.delayed(Duration(milliseconds: i * 7 % 50));
await subscription.cancel();
}

expect(errors, isEmpty);
},
);

test(
'throw a `permission-denied` exception when accessing restricted data',
() async {
Expand Down
Loading
Loading