From 4b72dd8caf38e90205ca54a3a2238d56e6023d4e Mon Sep 17 00:00:00 2001 From: Remi Rousselet Date: Wed, 8 Jan 2025 19:39:19 +0100 Subject: [PATCH] Remove skipped test --- packages/riverpod/test/src/core/ref_test.dart | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/packages/riverpod/test/src/core/ref_test.dart b/packages/riverpod/test/src/core/ref_test.dart index a5712c885..54f543f60 100644 --- a/packages/riverpod/test/src/core/ref_test.dart +++ b/packages/riverpod/test/src/core/ref_test.dart @@ -2727,34 +2727,6 @@ void main() { verifyZeroInteractions(listener); }); - test( - 'is called when dependent is invalidated and was the only listener', - // TODO deal with now that we have onPause - skip: 'Waiting for "clear dependencies after FutureProvider rebuilds"', - () async { - // - final container = ProviderContainer.test(); - final onCancel = OnCancelMock(); - final dep = StateProvider((ref) { - ref.onCancel(onCancel.call); - return 0; - }); - final provider = Provider.autoDispose((ref) => ref.watch(dep)); - - container.read(provider); - - verifyZeroInteractions(onCancel); - - container.read(dep.notifier).state++; - - verify(onCancel()).called(1); - - await container.pump(); - - verifyNoMoreInteractions(onCancel); - }, - ); - test('is called when all container listeners are removed', () { final container = ProviderContainer.test(); final listener = OnCancelMock();