parent
593437b8f2
commit
7bf67350a2
@ -204,7 +204,10 @@ if(BUILD_TESTING)
|
||||
add_subdirectory(test/nlohmann-json-test)
|
||||
endif()
|
||||
add_subdirectory(test/fault-injector)
|
||||
add_subdirectory(test/libcurl-stress-test)
|
||||
|
||||
if(BUILD_TRANSPORT_CURL)
|
||||
add_subdirectory(test/libcurl-stress-test)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (BUILD_PERFORMANCE_TESTS)
|
||||
|
||||
@ -27,16 +27,12 @@ void SendRequest(std::string target)
|
||||
{
|
||||
std::cout << target << std::endl;
|
||||
/* The transport adapter must allow insecure SSL certs.
|
||||
If both curl and winHttp are available, curl is preferred for this test.for*/
|
||||
#if defined(BUILD_CURL_HTTP_TRANSPORT_ADAPTER)
|
||||
If both curl and winHttp are available, curl is preferred for this test*/
|
||||
|
||||
Azure::Core::Http::CurlTransportOptions curlOptions;
|
||||
curlOptions.SslVerifyPeer = false;
|
||||
auto implementationClient = std::make_shared<Azure::Core::Http::CurlTransport>(curlOptions);
|
||||
|
||||
#elif (BUILD_TRANSPORT_WINHTTP_ADAPTER)
|
||||
Azure::Core::Http::WinHttpTransportOptions winHttpOptions;
|
||||
auto implementationClient = std::make_shared<Azure::Core::Http::WinHttpTransport>(winHttpOptions);
|
||||
#endif
|
||||
try
|
||||
{
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user