Skip to content

Can't test if using duration property. #178

@nakuzm

Description

@nakuzm

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions