]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3569_rebase] Schema clean-up before DbAccessParserTest.commitLeaseDb
authorTomek Mrugalski <tomasz@isc.org>
Tue, 1 Dec 2015 20:54:35 +0000 (21:54 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Tue, 1 Dec 2015 20:54:35 +0000 (21:54 +0100)
src/lib/dhcpsrv/tests/dbaccess_parser_unittest.cc

index 71fcc6b012c4a9802ccec3a320943aac5e1c9f6f..7f64b6eba03e5f159cdc40df28eee7e3df4196e0 100644 (file)
@@ -575,6 +575,9 @@ TEST_F(DbAccessParserTest, commitLeaseDb) {
 // depend this test on MYSQL availability.
 TEST_F(DbAccessParserTest, commitHostsDb) {
 
+    // Remove schema (if there are any leftovers from previous tests).
+    destroyMySQLSchema();
+
     // Verify that no lease database is open
     EXPECT_THROW({
             LeaseMgr& manager = LeaseMgrFactory::instance();