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:
Claude
2026-11-03 14:16:33 +00:00
committed by Dennis Klein
parent 0367c2a4a8
commit 3c752937a4
6 changed files with 70 additions and 60 deletions

View File

@@ -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));