mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-25 21:21:37 +00:00
refactor(test): set up test configs with test::Configure()
- 33 places repeated the same session, shm segment size, shm monitor and expanded metadata properties - call test::Configure() and set only the properties that differ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <fairlogger/Logger.h>
|
||||
|
||||
#include <helper/Transport.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <chrono>
|
||||
@@ -74,9 +75,7 @@ void InterruptTransfer(const string& transport, const string& _address)
|
||||
std::string address(ToString(_address, "_", transport));
|
||||
|
||||
fair::mq::ProgOptions config;
|
||||
config.SetProperty<string>("session", to_string(session));
|
||||
config.SetProperty<size_t>("shm-segment-size", 100000000);
|
||||
config.SetProperty<bool>("shm-monitor", true);
|
||||
test::Configure(config, to_string(session));
|
||||
|
||||
auto factory = TransportFactory::CreateTransportFactory(transport, Uuid(), &config);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user