mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Use different ports in tests to prevent parallel run fail
This commit is contained in:
@@ -33,10 +33,18 @@ int main(int argc, char** argv)
|
||||
testPub.SetProperty(FairMQTestPub::Id, "testPub");
|
||||
|
||||
FairMQChannel controlChannel("pull", "bind", "tcp://127.0.0.1:5555");
|
||||
if (argc == 2)
|
||||
{
|
||||
controlChannel.UpdateAddress("tcp://127.0.0.1:5755");
|
||||
}
|
||||
controlChannel.UpdateRateLogging(0);
|
||||
testPub.fChannels["control"].push_back(controlChannel);
|
||||
|
||||
FairMQChannel pubChannel("pub", "bind", "tcp://127.0.0.1:5556");
|
||||
if (argc == 2)
|
||||
{
|
||||
pubChannel.UpdateAddress("tcp://127.0.0.1:5756");
|
||||
}
|
||||
pubChannel.UpdateRateLogging(0);
|
||||
testPub.fChannels["data"].push_back(pubChannel);
|
||||
|
||||
|
Reference in New Issue
Block a user