mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-25 21:21:37 +00:00
test: use unique ipc addresses that the tests remove
- the in-process tests used fixed, relative ipc addresses; the socket files stayed in the build directory (99 files after 6 runs), and two runs of the same test at the same time could share a socket - use test::IpcAddress: a unique path in /tmp that the destructor removes - drop the session suffix of the inproc addresses: an inproc address is local to the process Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -99,7 +99,8 @@ TEST(Channel, Validation)
|
||||
auto testConnectedPeers(std::string const& transport)
|
||||
{
|
||||
ProgOptions config;
|
||||
string const address(tools::ToString("ipc://", test::Configure(config)));
|
||||
test::Configure(config);
|
||||
test::IpcAddress const address("connected_peers");
|
||||
unsigned long constexpr zero(0), one(1);
|
||||
auto factory(TransportFactory::CreateTransportFactory(transport, tools::Uuid(), &config));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user