diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-10-03 19:39:06 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-10-03 19:39:06 +0100 |
commit | d084b931c220185a7f8d4d06ef24013802a6e1f9 (patch) | |
tree | 69b1e3314b236ae2668c2a003152cc1d610dd21f | |
parent | Only run testRefreshGitRepository if non-shallow portage repo is available (diff) | |
download | gentoobrowse-api-d084b931c220185a7f8d4d06ef24013802a6e1f9.tar.bz2 gentoobrowse-api-d084b931c220185a7f8d4d06ef24013802a6e1f9.tar.xz gentoobrowse-api-d084b931c220185a7f8d4d06ef24013802a6e1f9.zip |
Wrap refresh in BOOST_REQUIRE_NO_THROW
-rw-r--r-- | gentoobrowse-api/unittests/testMaintenance.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gentoobrowse-api/unittests/testMaintenance.cpp b/gentoobrowse-api/unittests/testMaintenance.cpp index c287b1e..6f4e040 100644 --- a/gentoobrowse-api/unittests/testMaintenance.cpp +++ b/gentoobrowse-api/unittests/testMaintenance.cpp @@ -310,7 +310,7 @@ BOOST_AUTO_TEST_CASE(testRefreshGitRepository, *boost::unit_test::precondition(l } // Import it - m->refreshPackageTree(); + BOOST_REQUIRE_NO_THROW(m->refreshPackageTree()); SQL_REQUIRE_EQUAL(R"SQL(SELECT lastCommit FROM gentoobrowse.repos)SQL", std::string, "40539afe6705aee26a55bb861f5e892ae7240057"); |