randomize other test ports too
This commit is contained in:
parent
853a46d788
commit
737fe7e00d
@ -34,8 +34,9 @@ GuhTestBase::GuhTestBase(QObject *parent) :
|
|||||||
QObject(parent),
|
QObject(parent),
|
||||||
m_commandId(0)
|
m_commandId(0)
|
||||||
{
|
{
|
||||||
m_mockDevice1Port = 1337;
|
qsrand(QDateTime::currentMSecsSinceEpoch());
|
||||||
m_mockDevice2Port = 7331;
|
m_mockDevice1Port = 1337 + (qrand() % 1000);
|
||||||
|
m_mockDevice2Port = 7331 + (qrand() % 1000);
|
||||||
QCoreApplication::instance()->setOrganizationName("guh-test");
|
QCoreApplication::instance()->setOrganizationName("guh-test");
|
||||||
|
|
||||||
m_rulesSettings = QCoreApplication::instance()->organizationName() + "/rules";
|
m_rulesSettings = QCoreApplication::instance()->organizationName() + "/rules";
|
||||||
|
|||||||
Reference in New Issue
Block a user