Parcourir la source

[3569_rebase] Schema clean-up before DbAccessParserTest.commitLeaseDb

Tomek Mrugalski il y a 9 ans
Parent
commit
1e2e2274e1
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/lib/dhcpsrv/tests/dbaccess_parser_unittest.cc

+ 3 - 0
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();