fix build of HttpRequestTests when SSL is disabled
We can't test SSL when SSL is disabled. Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> Change-Id: I231a3c7d32f848870e90594e2d1151d3a0911f9aprivate/pedro/fix-codeql-analysis
parent
4f9315fa05
commit
6c69202b18
|
@ -170,6 +170,7 @@ constexpr std::chrono::seconds HttpRequestTests::DefTimeoutSeconds;
|
|||
|
||||
void HttpRequestTests::testSslHostname()
|
||||
{
|
||||
#if ENABLE_SSL
|
||||
constexpr auto testname = __func__;
|
||||
|
||||
if (helpers::haveSsl())
|
||||
|
@ -179,6 +180,7 @@ void HttpRequestTests::testSslHostname()
|
|||
host, _port, false, std::make_shared<ServerRequestHandler>());
|
||||
LOK_ASSERT_EQUAL(host, socket->getSslServername());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void HttpRequestTests::testInvalidURI()
|
||||
|
|
Loading…
Reference in New Issue