disable avahi service for tests (avahi daemon not available in test environment)

This commit is contained in:
Simon Stürz 2016-04-29 15:24:52 +02:00 committed by Michael Zanetti
parent 0a0138daed
commit 77eb103511

View File

@ -127,12 +127,13 @@ WebServer::WebServer(const QSslConfiguration &sslConfiguration, QObject *parent)
m_useSsl = false;
// Create avahi service
#ifndef TESTING_ENABLED
m_avahiService = new ZConfService(this);
connect(m_avahiService, SIGNAL(entryGroupEstablished()), this, SLOT(onEntryGroupEstablished()));
connect(m_avahiService, SIGNAL(entryGroupFailure()), this, SLOT(onEntryGroupEstablished()));
connect(m_avahiService, SIGNAL(entryGroupNameCollision()), this, SLOT(onEntryGroupEstablished()));
m_avahiService->registerService("guhd", m_port);
#endif
}
/*! Destructor of this \l{WebServer}. */