diff --git a/Testing/Code/IO/otbCoordinateToNameTest.cxx b/Testing/Code/IO/otbCoordinateToNameTest.cxx index 7a8e010353b521e25b3a51b22e775009390f7d21..02aff1c3461925858b03ac546853391a3c98ecdc 100644 --- a/Testing/Code/IO/otbCoordinateToNameTest.cxx +++ b/Testing/Code/IO/otbCoordinateToNameTest.cxx @@ -19,10 +19,10 @@ #include <fstream> #include <cstdlib> -#include <OpenThreads/Thread> #include "otbCoordinateToName.h" #include "otbCurlHelperStub.h" +#include "otbThreads.h" int otbCoordinateToNameTest(int argc, char* argv[]) { @@ -49,7 +49,7 @@ int otbCoordinateToNameTest(int argc, char* argv[]) { conv->MultithreadOn(); conv->Evaluate(); - OpenThreads::Thread::microSleep(10000000); //Make sure that the web request has the time to complete + otb::Threads::Sleep(10000000); //Make sure that the web request has the time to complete } else {