From d084b931c220185a7f8d4d06ef24013802a6e1f9 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 3 Oct 2021 19:39:06 +0100 Subject: Wrap refresh in BOOST_REQUIRE_NO_THROW --- gentoobrowse-api/unittests/testMaintenance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3