Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't test if using duration property. #178

Open
nakuzm opened this issue Mar 31, 2021 · 0 comments
Open

Can't test if using duration property. #178

nakuzm opened this issue Mar 31, 2021 · 0 comments

Comments

@nakuzm
Copy link

nakuzm commented Mar 31, 2021

Describe the bug
If I use duration property, then I have exception testing my widget that uses Flushbar for displaying error message.
Timer needs to be canceled on dispose.

The following assertion was thrown running a test:
A Timer is still pending even after the widget tree was disposed.
'package:flutter_test/src/binding.dart':
Failed assertion: line 1241 pos 12: '!timersPending'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant