summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-10-03 19:39:06 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-10-03 19:39:06 +0100
commitd084b931c220185a7f8d4d06ef24013802a6e1f9 (patch)
tree69b1e3314b236ae2668c2a003152cc1d610dd21f
parentOnly run testRefreshGitRepository if non-shallow portage repo is available (diff)
downloadgentoobrowse-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.cpp2
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");