Skip to content

Commit fe377c3

Browse files
authored
Fix ApMon test (#42)
1 parent 374cabf commit fe377c3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ set(TEST_SRCS
149149
)
150150
if(APMON_FOUND)
151151
list(APPEND TEST_SRCS test/testApMon.cxx)
152+
configure_file(test/ApMon.conf ApMon.conf COPYONLY)
152153
endif()
153154

154155
O2_GENERATE_TESTS(

test/testApMon.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ namespace Test {
1414

1515
BOOST_AUTO_TEST_CASE(simplySendMetric)
1616
{
17-
boost::filesystem::path configPath = boost::filesystem::canonical("..");
18-
std::string url = "apmon://" + configPath.string() + "/test/ApMon.conf";
17+
boost::filesystem::path configPath = boost::filesystem::canonical(".");
18+
std::string url = "apmon://" + configPath.string() + "/ApMon.conf";
1919
auto parsed = http::ParseHttpUrl(url);
2020
std::cout << parsed.path << std::endl;
2121
o2::monitoring::backends::ApMonBackend apMonBackend(parsed.path);

0 commit comments

Comments
 (0)