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);
|
||||
|
||||
|
@@ -36,10 +36,18 @@ int main(int argc, char** argv)
|
||||
testSub.SetProperty(FairMQTestSub::Id, "testSub_" + std::to_string(getpid()));
|
||||
|
||||
FairMQChannel controlChannel("push", "connect", "tcp://127.0.0.1:5555");
|
||||
if (argc == 2)
|
||||
{
|
||||
controlChannel.UpdateAddress("tcp://127.0.0.1:5755");
|
||||
}
|
||||
controlChannel.UpdateRateLogging(0);
|
||||
testSub.fChannels["control"].push_back(controlChannel);
|
||||
|
||||
FairMQChannel subChannel("sub", "connect", "tcp://127.0.0.1:5556");
|
||||
if (argc == 2)
|
||||
{
|
||||
subChannel.UpdateAddress("tcp://127.0.0.1:5756");
|
||||
}
|
||||
subChannel.UpdateRateLogging(0);
|
||||
testSub.fChannels["data"].push_back(subChannel);
|
||||
|
||||
|
Reference in New Issue
Block a user