whirlwind-match / fuzzydb

fuzzydb is a fuzzy matching database engine capable of providing human-like search results that make life much easier for users of websites searching for things like cars, houses, people and jobs.
19 stars 5 forks source link

Resolve why some tests fail when using delete/createStore as @Before test #58

Closed nealeu closed 13 years ago

nealeu commented 13 years ago

I'll commit a branch with this issue number on which to work on the defect.

I converted the BaseDatabaseTest to only start and stop the database around the class, not around each test, as this slows tests down notably.

Instead, before each test we delete and create the store afresh, thus creating a different internal store.

This is causing a number of tests to fail, but I don't yet know why.

nealeu commented 13 years ago

This was down to the order of when setPerstent was run once an abstract class was introduced. See SHA: 98c774694cf638ee744261b5be75ce88d18f2749