Codarama / diet-engine

Diet significantly minimizes the space used by your project's /lib
codarama.github.io/Diet
MIT License
3 stars 2 forks source link

No more than 1 test class can test the ModeShapeIndex #33

Open ayld opened 8 years ago

ayld commented 8 years ago

When a test class instantiates the index for testing it doesn't shut down by default. This causes the next class trying to use it to wait for login lock, which never becomes available. In effect this makes testing the index from 2 separate test classes impossible.

Currently this happens if one tries to run the index test and the AOP tests in a single suite. This is worked around by adding the AOP tests to the Integration suite.

ayld commented 8 years ago

The "real fix" I'm currently experimenting with is shutting down and starting up the index after each test class, but I haven't been able to get it to run yet.

Thoughts welcome.