disable avahi service for tests (avahi daemon not available in test environment)
This commit is contained in:
parent
0a0138daed
commit
77eb103511
@ -127,12 +127,13 @@ WebServer::WebServer(const QSslConfiguration &sslConfiguration, QObject *parent)
|
|||||||
m_useSsl = false;
|
m_useSsl = false;
|
||||||
|
|
||||||
// Create avahi service
|
// Create avahi service
|
||||||
|
#ifndef TESTING_ENABLED
|
||||||
m_avahiService = new ZConfService(this);
|
m_avahiService = new ZConfService(this);
|
||||||
connect(m_avahiService, SIGNAL(entryGroupEstablished()), this, SLOT(onEntryGroupEstablished()));
|
connect(m_avahiService, SIGNAL(entryGroupEstablished()), this, SLOT(onEntryGroupEstablished()));
|
||||||
connect(m_avahiService, SIGNAL(entryGroupFailure()), this, SLOT(onEntryGroupEstablished()));
|
connect(m_avahiService, SIGNAL(entryGroupFailure()), this, SLOT(onEntryGroupEstablished()));
|
||||||
connect(m_avahiService, SIGNAL(entryGroupNameCollision()), this, SLOT(onEntryGroupEstablished()));
|
connect(m_avahiService, SIGNAL(entryGroupNameCollision()), this, SLOT(onEntryGroupEstablished()));
|
||||||
m_avahiService->registerService("guhd", m_port);
|
m_avahiService->registerService("guhd", m_port);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! Destructor of this \l{WebServer}. */
|
/*! Destructor of this \l{WebServer}. */
|
||||||
|
|||||||
Reference in New Issue
Block a user