From 1e2e2274e1dab02ede59e8d13c79d27fa1556807 Mon Sep 17 00:00:00 2001 From: Tomek Mrugalski Date: Tue, 1 Dec 2015 21:54:35 +0100 Subject: [3569_rebase] Schema clean-up before DbAccessParserTest.commitLeaseDb --- src/lib/dhcpsrv/tests/dbaccess_parser_unittest.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib/dhcpsrv/tests/dbaccess_parser_unittest.cc') diff --git a/src/lib/dhcpsrv/tests/dbaccess_parser_unittest.cc b/src/lib/dhcpsrv/tests/dbaccess_parser_unittest.cc index 71fcc6b012..7f64b6eba0 100644 --- a/src/lib/dhcpsrv/tests/dbaccess_parser_unittest.cc +++ b/src/lib/dhcpsrv/tests/dbaccess_parser_unittest.cc @@ -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(); -- cgit v1.2.3