mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 00:49:46 +02:00
Fix unit tests for android build
This commit is contained in:
@@ -291,7 +291,7 @@ void MongoDBTest::testBuildInfo()
|
||||
|
||||
void MongoDBTest::testConnectionPool()
|
||||
{
|
||||
#ifdef POCO_ANDROID
|
||||
#if POCO_OS == POCO_OS_ANDROID
|
||||
std::string host = "10.0.2.2";
|
||||
#else
|
||||
std::string host = "127.0.0.1";
|
||||
@@ -406,7 +406,7 @@ void MongoDBTest::testConnectURI()
|
||||
Poco::MongoDB::Connection conn;
|
||||
Poco::MongoDB::Connection::SocketFactory sf;
|
||||
|
||||
#ifdef POCO_ANDROID
|
||||
#if POCO_OS == POCO_OS_ANDROID
|
||||
std::string host = "10.0.2.2";
|
||||
#else
|
||||
std::string host = "127.0.0.1";
|
||||
@@ -454,7 +454,7 @@ void MongoDBTest::testConnectURI()
|
||||
|
||||
CppUnit::Test* MongoDBTest::suite()
|
||||
{
|
||||
#ifdef POCO_ANDROID
|
||||
#if POCO_OS == POCO_OS_ANDROID
|
||||
std::string host = "10.0.2.2";
|
||||
#else
|
||||
std::string host = "127.0.0.1";
|
||||
|
||||
Reference in New Issue
Block a user