From 06b3c9645cbf404c1cadab17b8c514b0a35e1bc4 Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Wed, 22 Apr 2026 02:44:54 +0200 Subject: [PATCH] test: assert dispose completer fires --- test/utils/base_notifier_test.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/test/utils/base_notifier_test.dart b/test/utils/base_notifier_test.dart index dac601c6..12dffaf1 100644 --- a/test/utils/base_notifier_test.dart +++ b/test/utils/base_notifier_test.dart @@ -79,6 +79,7 @@ void main() { final sub = n.stream.listen((_) {}, onDone: doneCompleter.complete); n.dispose(); await doneCompleter.future.timeout(const Duration(seconds: 1)); + expect(doneCompleter.isCompleted, isTrue); await sub.cancel(); }); });