diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-07-22 22:28:35 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-07-22 22:28:35 +0100 |
commit | f4403169cb415f153f9ae9d389804dccaab85701 (patch) | |
tree | 707e05b06160c1f469c5981137003a116a6f8a30 | |
parent | Only update position after event handler (diff) | |
download | mygrate-f4403169cb415f153f9ae9d389804dccaab85701.tar.bz2 mygrate-f4403169cb415f153f9ae9d389804dccaab85701.tar.xz mygrate-f4403169cb415f153f9ae9d389804dccaab85701.zip |
Create test table before setting up repl
We aren't test adding a new table yet
-rw-r--r-- | test/test-e2e.cpp | 5 |
1 files 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"); |