Use different ports in tests to prevent parallel run fail

This commit is contained in:
Alexey Rybalchenko
2016-06-01 11:49:33 +02:00
parent 7062a3d280
commit f3bebe9321
7 changed files with 44 additions and 0 deletions

View File

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