aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/zenserver/zenserver.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/zenserver/zenserver.cpp b/src/zenserver/zenserver.cpp
index 363f168fe..bc2a8cb7d 100644
--- a/src/zenserver/zenserver.cpp
+++ b/src/zenserver/zenserver.cpp
@@ -365,13 +365,16 @@ public:
}
m_Http->RegisterService(m_TestService); // NOTE: this is intentionally not limited to test mode as it's useful for diagnostics
- m_Http->RegisterService(m_TestingService);
m_Http->RegisterService(m_AdminService);
+#if ZEN_WITH_TESTS
+ m_Http->RegisterService(m_TestingService);
+
if (m_WebSocket)
{
m_WebSocket->RegisterService(m_TestingService);
}
+#endif
if (m_HttpProjectService)
{
@@ -712,7 +715,9 @@ private:
std::unique_ptr<zen::CidStore> m_CidStore;
std::unique_ptr<zen::ZenCacheStore> m_CacheStore;
zen::HttpTestService m_TestService;
+#if ZEN_WITH_TESTS
zen::HttpTestingService m_TestingService;
+#endif
std::unique_ptr<zen::HttpCidService> m_CidService;
zen::RefPtr<zen::ProjectStore> m_ProjectStore;
std::unique_ptr<zen::HttpProjectService> m_HttpProjectService;