Dart unit test not working with content-shell


I have dart unit tests written using test: '>=0.12.1 <0.13.0' library. When I try to run tests using Dartium it works perfectly, but using content-shell it throws error.

pub run test test/unit -p content-shell
Failed to start content shell: Bad state: Stream has already been listened to..

I’m using ubuntu machine and content shell is in path.


I upgraded the dart and content-shell version to 1.11 and its working now.

Answered By – ashokd

Answer Checked By – Katrina (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *