diff options
author | Marc Laukien <marc@zeroc.com> | 2004-02-19 14:18:23 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-02-19 14:18:23 +0000 |
commit | 588647427b50adf0d92f4b01b1e014d04cc3a767 (patch) | |
tree | dd0c3157d68f794cd76919fb8cb167710b265fb9 /cpp/test | |
parent | fix (diff) | |
download | ice-588647427b50adf0d92f4b01b1e014d04cc3a767.tar.bz2 ice-588647427b50adf0d92f4b01b1e014d04cc3a767.tar.xz ice-588647427b50adf0d92f4b01b1e014d04cc3a767.zip |
fix
Diffstat (limited to 'cpp/test')
28 files changed, 43 insertions, 43 deletions
diff --git a/cpp/test/Glacier/starter/Client.cpp b/cpp/test/Glacier/starter/Client.cpp index 0cff8aa3bdd..427b8f6e57b 100644 --- a/cpp/test/Glacier/starter/Client.cpp +++ b/cpp/test/Glacier/starter/Client.cpp @@ -131,7 +131,7 @@ CallbackClient::run(int argc, char* argv[]) cout << "ok" << endl; cout << "testing stringToProxy... " << flush; - ref = "callback:tcp -p 12345 -t 5000"; + ref = "callback:tcp -p 12345 -t 10000"; ObjectPrx base = communicator()->stringToProxy(ref); cout << "ok" << endl; diff --git a/cpp/test/Glacier/starter/Server.cpp b/cpp/test/Glacier/starter/Server.cpp index 4d0871e7485..54f55889fb6 100644 --- a/cpp/test/Glacier/starter/Server.cpp +++ b/cpp/test/Glacier/starter/Server.cpp @@ -35,7 +35,7 @@ main(int argc, char* argv[]) int CallbackServer::run(int argc, char* argv[]) { - communicator()->getProperties()->setProperty("CallbackAdapter.Endpoints", "tcp -p 12345 -t 2000"); + communicator()->getProperties()->setProperty("CallbackAdapter.Endpoints", "tcp -p 12345 -t 10000"); Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("CallbackAdapter"); CallbackPrx self = CallbackPrx::uncheckedCast(adapter->createProxy(Ice::stringToIdentity("callback"))); adapter->add(new CallbackI(communicator()), Ice::stringToIdentity("callback")); diff --git a/cpp/test/Ice/adapterDeactivation/AllTests.cpp b/cpp/test/Ice/adapterDeactivation/AllTests.cpp index d69e2685063..18522ba8ba0 100644 --- a/cpp/test/Ice/adapterDeactivation/AllTests.cpp +++ b/cpp/test/Ice/adapterDeactivation/AllTests.cpp @@ -23,7 +23,7 @@ TestPrx allTests(const CommunicatorPtr& communicator) { cout << "testing stringToProxy... " << flush; - ObjectPrx base = communicator->stringToProxy("test:default -p 12345 -t 2000"); + ObjectPrx base = communicator->stringToProxy("test:default -p 12345 -t 10000"); test(base); cout << "ok" << endl; diff --git a/cpp/test/Ice/adapterDeactivation/Collocated.cpp b/cpp/test/Ice/adapterDeactivation/Collocated.cpp index 0039bec0116..61d5453c727 100644 --- a/cpp/test/Ice/adapterDeactivation/Collocated.cpp +++ b/cpp/test/Ice/adapterDeactivation/Collocated.cpp @@ -37,7 +37,7 @@ main(int argc, char* argv[]) int TestServer::run(int argc, char* argv[]) { - communicator()->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 2000"); + communicator()->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 10000"); Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("TestAdapter"); ServantLocatorPtr locator = new ServantLocatorI; adapter->addServantLocator(locator, ""); diff --git a/cpp/test/Ice/adapterDeactivation/Server.cpp b/cpp/test/Ice/adapterDeactivation/Server.cpp index 37f0630bc22..cd6995053a6 100644 --- a/cpp/test/Ice/adapterDeactivation/Server.cpp +++ b/cpp/test/Ice/adapterDeactivation/Server.cpp @@ -36,7 +36,7 @@ main(int argc, char* argv[]) int TestServer::run(int argc, char* argv[]) { - communicator()->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 2000"); + communicator()->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 10000"); Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("TestAdapter"); ServantLocatorPtr locator = new ServantLocatorI; adapter->addServantLocator(locator, ""); diff --git a/cpp/test/Ice/exceptions/AllTests.cpp b/cpp/test/Ice/exceptions/AllTests.cpp index d7627a50ff5..14c05b32fd8 100644 --- a/cpp/test/Ice/exceptions/AllTests.cpp +++ b/cpp/test/Ice/exceptions/AllTests.cpp @@ -640,7 +640,7 @@ allTests(const Ice::CommunicatorPtr& communicator, bool collocated) cout << "ok" << endl; cout << "testing stringToProxy... " << flush; - string ref = "thrower:default -p 12345 -t 2000"; + string ref = "thrower:default -p 12345 -t 10000"; Ice::ObjectPrx base = communicator->stringToProxy(ref); test(base); cout << "ok" << endl; diff --git a/cpp/test/Ice/exceptions/Collocated.cpp b/cpp/test/Ice/exceptions/Collocated.cpp index af978eab7f2..fd0579c9c89 100644 --- a/cpp/test/Ice/exceptions/Collocated.cpp +++ b/cpp/test/Ice/exceptions/Collocated.cpp @@ -20,7 +20,7 @@ using namespace std; int run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { - communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 2000"); + communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 10000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter"); Ice::ObjectPtr object = new ThrowerI(adapter); adapter->add(object, Ice::stringToIdentity("thrower")); diff --git a/cpp/test/Ice/exceptions/Server.cpp b/cpp/test/Ice/exceptions/Server.cpp index 603ea97d5e5..1e84bc325f2 100644 --- a/cpp/test/Ice/exceptions/Server.cpp +++ b/cpp/test/Ice/exceptions/Server.cpp @@ -22,7 +22,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { Ice::PropertiesPtr properties = communicator->getProperties(); properties->setProperty("Ice.Warn.Dispatch", "0"); - communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 2000"); + communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 10000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter"); Ice::ObjectPtr object = new ThrowerI(adapter); adapter->add(object, Ice::stringToIdentity("thrower")); diff --git a/cpp/test/Ice/exceptions/ServerAMD.cpp b/cpp/test/Ice/exceptions/ServerAMD.cpp index d0caa6cfa47..783585613a5 100644 --- a/cpp/test/Ice/exceptions/ServerAMD.cpp +++ b/cpp/test/Ice/exceptions/ServerAMD.cpp @@ -22,7 +22,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { Ice::PropertiesPtr properties = communicator->getProperties(); properties->setProperty("Ice.Warn.Dispatch", "0"); - communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 2000"); + communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 10000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter"); Ice::ObjectPtr object = new ThrowerI(adapter); adapter->add(object, Ice::stringToIdentity("thrower")); diff --git a/cpp/test/Ice/facets/AllTests.cpp b/cpp/test/Ice/facets/AllTests.cpp index 2653d7fa54b..cd336f45e92 100644 --- a/cpp/test/Ice/facets/AllTests.cpp +++ b/cpp/test/Ice/facets/AllTests.cpp @@ -57,7 +57,7 @@ allTests(const Ice::CommunicatorPtr& communicator) adapter->deactivate(); cout << "testing stringToProxy... " << flush; - string ref = "d:default -p 12345 -t 2000"; + string ref = "d:default -p 12345 -t 10000"; Ice::ObjectPrx db = communicator->stringToProxy(ref); test(db); cout << "ok" << endl; diff --git a/cpp/test/Ice/facets/Collocated.cpp b/cpp/test/Ice/facets/Collocated.cpp index 7b0a0532ea7..dbb9b721b4e 100644 --- a/cpp/test/Ice/facets/Collocated.cpp +++ b/cpp/test/Ice/facets/Collocated.cpp @@ -20,7 +20,7 @@ using namespace std; int run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { - communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 2000"); + communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 10000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter"); Ice::ObjectPtr d = new DI; adapter->add(d, Ice::stringToIdentity("d")); diff --git a/cpp/test/Ice/facets/Server.cpp b/cpp/test/Ice/facets/Server.cpp index c4f736f0900..fd6f627dbb6 100644 --- a/cpp/test/Ice/facets/Server.cpp +++ b/cpp/test/Ice/facets/Server.cpp @@ -20,7 +20,7 @@ using namespace std; int run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { - communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 2000"); + communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 10000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter"); Ice::ObjectPtr d = new DI; adapter->add(d, Ice::stringToIdentity("d")); diff --git a/cpp/test/Ice/faultTolerance/AllTests.cpp b/cpp/test/Ice/faultTolerance/AllTests.cpp index 1a43fc7b24b..1181831f4e6 100644 --- a/cpp/test/Ice/faultTolerance/AllTests.cpp +++ b/cpp/test/Ice/faultTolerance/AllTests.cpp @@ -170,7 +170,7 @@ allTests(const Ice::CommunicatorPtr& communicator, const vector<int>& ports) ref << "test"; for(vector<int>::const_iterator p = ports.begin(); p != ports.end(); ++p) { - ref << ":default -t 4000 -p " << *p; + ref << ":default -t 10000 -p " << *p; } Ice::ObjectPrx base = communicator->stringToProxy(ref.str()); test(base); diff --git a/cpp/test/Ice/inheritance/AllTests.cpp b/cpp/test/Ice/inheritance/AllTests.cpp index bd31029b737..fffc0b24243 100644 --- a/cpp/test/Ice/inheritance/AllTests.cpp +++ b/cpp/test/Ice/inheritance/AllTests.cpp @@ -22,7 +22,7 @@ InitialPrx allTests(const Ice::CommunicatorPtr& communicator) { cout << "testing stringToProxy... " << flush; - string ref = "initial:default -p 12345 -t 2000"; + string ref = "initial:default -p 12345 -t 10000"; Ice::ObjectPrx base = communicator->stringToProxy(ref); test(base); cout << "ok" << endl; diff --git a/cpp/test/Ice/inheritance/Collocated.cpp b/cpp/test/Ice/inheritance/Collocated.cpp index 7e486108f1b..27f8964a499 100644 --- a/cpp/test/Ice/inheritance/Collocated.cpp +++ b/cpp/test/Ice/inheritance/Collocated.cpp @@ -20,7 +20,7 @@ using namespace std; int run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { - communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 2000"); + communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 10000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter"); Ice::ObjectPtr object = new InitialI(adapter); adapter->add(object, Ice::stringToIdentity("initial")); diff --git a/cpp/test/Ice/inheritance/Server.cpp b/cpp/test/Ice/inheritance/Server.cpp index 69d049acd90..d2558b8bc67 100644 --- a/cpp/test/Ice/inheritance/Server.cpp +++ b/cpp/test/Ice/inheritance/Server.cpp @@ -20,7 +20,7 @@ using namespace std; int run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { - communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 2000"); + communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 10000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter"); Ice::ObjectPtr object = new InitialI(adapter); adapter->add(object, Ice::stringToIdentity("initial")); diff --git a/cpp/test/Ice/objects/AllTests.cpp b/cpp/test/Ice/objects/AllTests.cpp index 5d4ccd99335..53ab064d30e 100644 --- a/cpp/test/Ice/objects/AllTests.cpp +++ b/cpp/test/Ice/objects/AllTests.cpp @@ -22,7 +22,7 @@ InitialPrx allTests(const Ice::CommunicatorPtr& communicator, bool collocated) { cout << "testing stringToProxy... " << flush; - string ref = "initial:default -p 12345 -t 2000"; + string ref = "initial:default -p 12345 -t 10000"; Ice::ObjectPrx base = communicator->stringToProxy(ref); test(base); cout << "ok" << endl; diff --git a/cpp/test/Ice/objects/Collocated.cpp b/cpp/test/Ice/objects/Collocated.cpp index b706f7d172d..fcb27cf92c6 100644 --- a/cpp/test/Ice/objects/Collocated.cpp +++ b/cpp/test/Ice/objects/Collocated.cpp @@ -20,7 +20,7 @@ using namespace std; int run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { - communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 2000"); + communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 10000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter"); InitialPtr initial = new InitialI(adapter); adapter->add(initial, Ice::stringToIdentity("initial")); diff --git a/cpp/test/Ice/objects/Server.cpp b/cpp/test/Ice/objects/Server.cpp index 9f5381d012b..03f725a52b7 100644 --- a/cpp/test/Ice/objects/Server.cpp +++ b/cpp/test/Ice/objects/Server.cpp @@ -20,7 +20,7 @@ using namespace std; int run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { - communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 2000"); + communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 10000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter"); InitialPtr initial = new InitialI(adapter); adapter->add(initial, Ice::stringToIdentity("initial")); diff --git a/cpp/test/Ice/operations/AllTests.cpp b/cpp/test/Ice/operations/AllTests.cpp index fe43ba9b31b..cf20232f307 100644 --- a/cpp/test/Ice/operations/AllTests.cpp +++ b/cpp/test/Ice/operations/AllTests.cpp @@ -22,7 +22,7 @@ Test::MyClassPrx allTests(const Ice::CommunicatorPtr& communicator, bool collocated) { cout << "testing stringToProxy... " << flush; - string ref = "test:default -p 12345 -t 2000"; + string ref = "test:default -p 12345 -t 10000"; Ice::ObjectPrx base = communicator->stringToProxy(ref); test(base); cout << "ok" << endl; diff --git a/cpp/test/Ice/operations/Collocated.cpp b/cpp/test/Ice/operations/Collocated.cpp index cb9048b4da8..b20e1e1c359 100644 --- a/cpp/test/Ice/operations/Collocated.cpp +++ b/cpp/test/Ice/operations/Collocated.cpp @@ -20,7 +20,7 @@ using namespace std; int run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { - communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 2000"); + communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 10000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter"); Ice::ObjectPtr object = new MyDerivedClassI(adapter, Ice::stringToIdentity("test")); adapter->add(object, Ice::stringToIdentity("test")); diff --git a/cpp/test/Ice/operations/Server.cpp b/cpp/test/Ice/operations/Server.cpp index ab39ee23257..8c53f3ff1ed 100644 --- a/cpp/test/Ice/operations/Server.cpp +++ b/cpp/test/Ice/operations/Server.cpp @@ -20,7 +20,7 @@ using namespace std; int run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { - communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 2000"); + communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 10000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter"); Ice::ObjectPtr object = new MyDerivedClassI(adapter, Ice::stringToIdentity("test")); adapter->add(object, Ice::stringToIdentity("test")); diff --git a/cpp/test/Ice/operations/ServerAMD.cpp b/cpp/test/Ice/operations/ServerAMD.cpp index fd9cd8867fe..059ddc69bca 100644 --- a/cpp/test/Ice/operations/ServerAMD.cpp +++ b/cpp/test/Ice/operations/ServerAMD.cpp @@ -20,7 +20,7 @@ using namespace std; int run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { - communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 2000"); + communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 10000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter"); Ice::ObjectPtr object = new MyDerivedClassI(adapter, Ice::stringToIdentity("test")); adapter->add(object, Ice::stringToIdentity("test")); diff --git a/cpp/test/IceSSL/certificateVerification/Client.cpp b/cpp/test/IceSSL/certificateVerification/Client.cpp index b8a3d168775..cd5e2708f76 100644 --- a/cpp/test/IceSSL/certificateVerification/Client.cpp +++ b/cpp/test/IceSSL/certificateVerification/Client.cpp @@ -23,13 +23,13 @@ using namespace std; int run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { - const string ref1 = "pinger:ssl -p 12345 -t 2000"; - const string ref2 = "pinger:ssl -p 12346 -t 2000"; - const string ref3 = "pinger:ssl -p 12347 -t 2000"; - const string ref4 = "pinger:ssl -p 12348 -t 2000"; - const string ref5 = "pinger:ssl -p 12349 -t 2000"; + const string ref1 = "pinger:ssl -p 12345 -t 10000"; + const string ref2 = "pinger:ssl -p 12346 -t 10000"; + const string ref3 = "pinger:ssl -p 12347 -t 10000"; + const string ref4 = "pinger:ssl -p 12348 -t 10000"; + const string ref5 = "pinger:ssl -p 12349 -t 10000"; - KeyManagerPrx km = KeyManagerPrx::checkedCast(communicator->stringToProxy("keyManager:tcp -p 12344 -t 2000")); + KeyManagerPrx km = KeyManagerPrx::checkedCast(communicator->stringToProxy("keyManager:tcp -p 12344 -t 10000")); Ice::ByteSeq serverTrustedCert; Ice::ByteSeq serverUntrustedCert; diff --git a/cpp/test/IceSSL/certificateVerification/Server.cpp b/cpp/test/IceSSL/certificateVerification/Server.cpp index 667bf0cd473..128785bd2d1 100644 --- a/cpp/test/IceSSL/certificateVerification/Server.cpp +++ b/cpp/test/IceSSL/certificateVerification/Server.cpp @@ -162,17 +162,17 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) sslPlugin->setCertificateVerifier(IceSSL::Server, certVerifier); } - properties->setProperty("KeyManagerAdapter.Endpoints", "tcp -p 12344 -t 2000"); + properties->setProperty("KeyManagerAdapter.Endpoints", "tcp -p 12344 -t 10000"); Ice::ObjectAdapterPtr kmAdapter = communicator->createObjectAdapter("KeyManagerAdapter"); kmAdapter->add(object, Ice::stringToIdentity("keyManager")); kmAdapter->activate(); const string pingerEndpoints = - "ssl -p 12345 -t 2000" - ":ssl -p 12346 -t 2000" - ":ssl -p 12347 -t 2000" - ":ssl -p 12348 -t 2000" - ":ssl -p 12349 -t 2000"; + "ssl -p 12345 -t 10000" + ":ssl -p 12346 -t 10000" + ":ssl -p 12347 -t 10000" + ":ssl -p 12348 -t 10000" + ":ssl -p 12349 -t 10000"; properties->setProperty("PingerAdapter.Endpoints", pingerEndpoints); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("PingerAdapter"); adapter->add(new PingerI(), Ice::stringToIdentity("pinger")); diff --git a/cpp/test/IceStorm/federation/run.py b/cpp/test/IceStorm/federation/run.py index 120710da820..37efd293f8d 100755 --- a/cpp/test/IceStorm/federation/run.py +++ b/cpp/test/IceStorm/federation/run.py @@ -14,7 +14,7 @@ # ********************************************************************** import os, sys -import time +from time import sleep for toplevel in [".", "..", "../..", "../../..", "../../../.."]: toplevel = os.path.normpath(toplevel) @@ -79,7 +79,7 @@ def doTest(batch): print "failed!" TestUtil.killServers() sys.exit(1) - time.sleep(1) + sleep(1) lockCount = lockCount + 1 print "ok" @@ -104,7 +104,7 @@ def doTest(batch): print "failed!" TestUtil.killServers() sys.exit(1) - time.sleep(1) + sleep(1) lockCount = lockCount + 1 print "ok" diff --git a/cpp/test/IceStorm/federation2/run.py b/cpp/test/IceStorm/federation2/run.py index 0d8f087476b..454c49d3dfa 100755 --- a/cpp/test/IceStorm/federation2/run.py +++ b/cpp/test/IceStorm/federation2/run.py @@ -14,7 +14,7 @@ # ********************************************************************** import os, sys -import time +from time import sleep for toplevel in [".", "..", "../..", "../../..", "../../../.."]: toplevel = os.path.normpath(toplevel) @@ -81,7 +81,7 @@ def doTest(batch): print "failed!" TestUtil.killServers() sys.exit(1) - time.sleep(1) + sleep(1) lockCount = lockCount + 1 print "ok" @@ -106,7 +106,7 @@ def doTest(batch): print "failed!" TestUtil.killServers() sys.exit(1) - time.sleep(1) + sleep(1) lockCount = lockCount + 1 print "ok" diff --git a/cpp/test/IceStorm/single/run.py b/cpp/test/IceStorm/single/run.py index 3a39ce4415a..98e81997c7f 100755 --- a/cpp/test/IceStorm/single/run.py +++ b/cpp/test/IceStorm/single/run.py @@ -14,7 +14,7 @@ # ********************************************************************** import os, sys -import time +from time import sleep for toplevel in [".", "..", "../..", "../../..", "../../../.."]: toplevel = os.path.normpath(toplevel) @@ -110,7 +110,7 @@ while os.path.isfile(subscriberLockFile): print "failed!" TestUtil.killServers() sys.exit(1) - time.sleep(1) + sleep(1) lockCount = lockCount + 1 print "ok" |