mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
Use different ports in tests to prevent parallel run fail
This commit is contained in:
@@ -33,6 +33,11 @@ int main(int argc, char** argv)
|
||||
testPull.SetProperty(FairMQTestPull::Id, "testPull");
|
||||
|
||||
FairMQChannel pullChannel("pull", "connect", "tcp://127.0.0.1:5557");
|
||||
if (argc == 2)
|
||||
{
|
||||
pullChannel.UpdateAddress("tcp://127.0.0.1:5757");
|
||||
}
|
||||
pullChannel.UpdateRateLogging(0);
|
||||
testPull.fChannels["data"].push_back(pullChannel);
|
||||
|
||||
testPull.ChangeState("INIT_DEVICE");
|
||||
|
@@ -34,6 +34,11 @@ int main(int argc, char** argv)
|
||||
testPush.SetProperty(FairMQTestPush::Id, "testPush");
|
||||
|
||||
FairMQChannel pushChannel("push", "bind", "tcp://127.0.0.1:5557");
|
||||
if (argc == 2)
|
||||
{
|
||||
pushChannel.UpdateAddress("tcp://127.0.0.1:5757");
|
||||
}
|
||||
pushChannel.UpdateRateLogging(0);
|
||||
testPush.fChannels["data"].push_back(pushChannel);
|
||||
|
||||
testPush.ChangeState("INIT_DEVICE");
|
||||
|
Reference in New Issue
Block a user