Skip to content

Commit

Permalink
Remove skipped test
Browse files Browse the repository at this point in the history
  • Loading branch information
rrousselGit committed Jan 8, 2025
1 parent f88ba03 commit 4b72dd8
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions packages/riverpod/test/src/core/ref_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4b72dd8

Please sign in to comment.