test: remove redundant coverage and shorten timers

This commit is contained in:
edde746
2026-07-13 02:15:03 +02:00
parent c4e9fa1650
commit e6e7d8cdfd
63 changed files with 90 additions and 1760 deletions
-15
View File
@@ -7,21 +7,6 @@ class _IntNotifier extends BaseNotifier<int> {}
void main() {
group('BaseNotifier', () {
test('single listener receives events', () async {
final n = _IntNotifier();
final received = <int>[];
final sub = n.stream.listen(received.add);
n.notify(1);
n.notify(2);
n.notify(3);
await Future<void>.delayed(Duration.zero);
expect(received, [1, 2, 3]);
await sub.cancel();
n.dispose();
});
test('broadcasts to multiple listeners', () async {
final n = _IntNotifier();
final a = <int>[];