From f4403169cb415f153f9ae9d389804dccaab85701 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 22 Jul 2021 22:28:35 +0100 Subject: Create test table before setting up repl We aren't test adding a new table yet --- test/test-e2e.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test-e2e.cpp b/test/test-e2e.cpp index 1921a08..9394e13 100644 --- a/test/test-e2e.cpp +++ b/test/test-e2e.cpp @@ -19,14 +19,15 @@ BOOST_AUTO_TEST_CASE(e2e) auto pqm = pq.mock(); auto mym = my.mock(); + MyGrate::sql::createTestTable::execute(&mym); + MyGrate::sql::fillTestTable::execute(&mym); + auto out = MyGrate::Output::Pq::UpdateDatabase::createNew(&pqm, MySQLDB::SERVER, MySQLDB::USER, MySQLDB::PASSWORD, MySQLDB::PORT, my.mockname.c_str(), 100, target_schema); BOOST_CHECK_EQUAL(out.source, 1); auto src = out.getSource(); BOOST_REQUIRE(src); - MyGrate::sql::createTestTable::execute(&mym); - MyGrate::sql::fillTestTable::execute(&mym); out.addTable(&mym, "session"); out.copyTableContent(&mym, "session"); -- cgit v1.2.3