How to clear Service Data after test

I have been working on a project where we use a service which stores the context data of a modal. The test works fine when only a single test is run (by filtering). But if more than one test runs then some of them may fail. I don’t understand why that happens. Maybe the service might be storing the data. The data may not be cleared from the service after each test finishes.

How to clear the service data?

Definitely sounds like there could be state leaking, but the entire app (and therefore services) Are torn down between tests. My guess is that something else is keeping the state around somehow. Could you share some of the test code? Also does any of the code involved use the ember runloop? That can be a common tripping point…

You could also try using ember-qunits test isolation validation flag and see if that turns anything up…