randomize other test ports too

pull/135/head
Michael Zanetti 2014-07-06 22:35:55 +02:00
parent 853a46d788
commit 737fe7e00d
1 changed files with 3 additions and 2 deletions

View File

@ -34,8 +34,9 @@ GuhTestBase::GuhTestBase(QObject *parent) :
QObject(parent),
m_commandId(0)
{
m_mockDevice1Port = 1337;
m_mockDevice2Port = 7331;
qsrand(QDateTime::currentMSecsSinceEpoch());
m_mockDevice1Port = 1337 + (qrand() % 1000);
m_mockDevice2Port = 7331 + (qrand() % 1000);
QCoreApplication::instance()->setOrganizationName("guh-test");
m_rulesSettings = QCoreApplication::instance()->organizationName() + "/rules";