mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-25 13:11:36 +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:
@@ -11,6 +11,7 @@
|
||||
#include <fairmq/Tools.h>
|
||||
#include <fairmq/TransportFactory.h>
|
||||
#include <helper/Sync.h>
|
||||
#include <helper/Transport.h>
|
||||
#include <gtest/gtest.h>
|
||||
#include <string>
|
||||
|
||||
@@ -98,10 +99,7 @@ TEST(Channel, Validation)
|
||||
auto testConnectedPeers(std::string const& transport)
|
||||
{
|
||||
ProgOptions config;
|
||||
config.SetProperty<string>("session", tools::Uuid());
|
||||
config.SetProperty<bool>("shm-monitor", true);
|
||||
config.SetProperty<size_t>("shm-segment-size", 100000000);
|
||||
string const address(tools::ToString("ipc://", config.GetProperty<string>("session")));
|
||||
string const address(tools::ToString("ipc://", test::Configure(config)));
|
||||
unsigned long constexpr zero(0), one(1);
|
||||
auto factory(TransportFactory::CreateTransportFactory(transport, tools::Uuid(), &config));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user