mirror of https://github.com/nymea/nymea.git
randomize other test ports too
parent
853a46d788
commit
737fe7e00d
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in New Issue