Skip to content

Commit a3c2a01

Browse files
authored
fix the tests (#563)
1 parent ff767b7 commit a3c2a01

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Framework/test/testAggregatorRunner.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ using namespace o2::header;
3030
BOOST_AUTO_TEST_CASE(test_check_runner_static)
3131
{
3232
BOOST_CHECK(AggregatorRunner::createAggregatorRunnerDataDescription("qwertyuiop") == DataDescription("qwertyuiop"));
33-
BOOST_CHECK(AggregatorRunner::createAggregatorRunnerDataDescription("012345678901234567890") == DataDescription("012345678901"));
33+
BOOST_CHECK(AggregatorRunner::createAggregatorRunnerDataDescription("012345678901234567890") == DataDescription("0123456789012345"));
3434
BOOST_CHECK_THROW(AggregatorRunner::createAggregatorRunnerDataDescription(""), AliceO2::Common::FatalException);
3535
}

Framework/test/testInfrastructureGenerator.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ BOOST_AUTO_TEST_CASE(qc_factory_standalone_test)
160160
std::string configFilePath = std::string("json://") + getTestDataDirectory() + "testSharedConfig.json";
161161
auto workflow = InfrastructureGenerator::generateStandaloneInfrastructure(configFilePath);
162162

163-
// the infrastructure should consist of 3 TaskRunners, 1 PostProcessingRunner, 4 CheckRunners (including one for PP)
164-
BOOST_REQUIRE_EQUAL(workflow.size(), 8);
163+
// the infrastructure should consist of 3 TaskRunners, 1 PostProcessingRunner, 4 CheckRunners (including one for PP), 1 AggregatorRunner
164+
BOOST_REQUIRE_EQUAL(workflow.size(), 9);
165165

166166
auto taskRunnerSkeleton = std::find_if(
167167
workflow.begin(), workflow.end(),
@@ -214,7 +214,7 @@ BOOST_AUTO_TEST_CASE(qc_factory_empty_config)
214214
{
215215
WorkflowSpec workflow;
216216
BOOST_REQUIRE_NO_THROW(InfrastructureGenerator::generateStandaloneInfrastructure(workflow, configFilePath));
217-
BOOST_CHECK_EQUAL(workflow.size(), 0);
217+
BOOST_CHECK_EQUAL(workflow.size(), 1);
218218
}
219219
{
220220
WorkflowSpec workflow;

0 commit comments

Comments
 (0)