Skip to content

Commit 4c75465

Browse files
authored
Refactor CCDB URL handling in populateCCDBWithCommitAvailability
1 parent 236929d commit 4c75465

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Common/Core/macros/testMetadataHelper.C

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ std::map<std::string, bool> buildMapForCommitHash(const std::string& hash)
120120
}
121121

122122
void populateCCDBWithCommitAvailability(std::map<string, bool> hasHashMap,
123-
const std::string commitHash)
123+
const std::string commitHash const std::string ccdbUrl = "http://ccdb-test.cern.ch:8080/")
124124
{
125125
// First, init the CCDB manager to test if the ccdb is already populated
126126
o2::ccdb::CcdbApi api;
127-
api.init("http://ccdb-test.cern.ch:8080/");
127+
api.init(ccdbUrl);
128128
if (!api.isHostReachable()) {
129-
LOG(fatal) << "CCDB host http://ccdb-test.cern.ch:8080/ is not reacheable, cannot go forward";
129+
LOG(fatal) << "CCDB host " << ccdbUrl << " is not reacheable, cannot go forward";
130130
}
131131
for (const auto& entry : hasHashMap) {
132132
if (!entry.second) { // Version of the code does not have the hash

0 commit comments

Comments
 (0)