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

@@ -35,6 +35,11 @@ int main(int argc, char** argv)
testRep.SetProperty(FairMQTestRep::Id, "testRep");
FairMQChannel repChannel("rep", "bind", "tcp://127.0.0.1:5558");
if (argc == 2)
{
repChannel.UpdateAddress("tcp://127.0.0.1:5758");
}
repChannel.UpdateRateLogging(0);
testRep.fChannels["data"].push_back(repChannel);
testRep.ChangeState("INIT_DEVICE");