ensure DatabaseFixture removes db on cleanup
The DatabaseFixture was previously just ensuring that tests which used it had a clean database when they started. It did not ensure there was no working database around when it wasn't being used, so tests which leaked into the database might pass even if they were listed as a NoDBTest, because there was an in memory test db from a prior run. This adds a cleanup path to the fixture which blows away the db at the end of the test (which itself is tested). There were 46 tests which failed when we got this isolation correct, and this changes all those test classes containing those tests to require a db. Many of these could have narrower fixes, but this returns us to an isolated state. Change-Id: Id0480035d8e615ae602da9737cd2c94bc7967067 Closes-Bug: #1431519 Closes-Bug: #1431551changes/70/163970/1
parent
42a800e796
commit
c943cbbc40
Loading…
Reference in New Issue