You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dr...@apache.org on 2008/06/11 02:57:02 UTC

svn commit: r666412 - /incubator/thrift/trunk/test/py/TestServer.py

Author: dreiss
Date: Tue Jun 10 17:57:01 2008
New Revision: 666412

URL: http://svn.apache.org/viewvc?rev=666412&view=rev
Log:
Implement testAsync for python tests

Modified:
    incubator/thrift/trunk/test/py/TestServer.py

Modified: incubator/thrift/trunk/test/py/TestServer.py
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/test/py/TestServer.py?rev=666412&r1=666411&r2=666412&view=diff
==============================================================================
--- incubator/thrift/trunk/test/py/TestServer.py (original)
+++ incubator/thrift/trunk/test/py/TestServer.py Tue Jun 10 17:57:01 2008
@@ -59,6 +59,11 @@
     time.sleep(seconds)
     print 'done sleeping'
 
+  def testAsync(self, seconds):
+    print 'testAsync(%d) => sleeping...' % seconds
+    time.sleep(seconds)
+    print 'done sleeping'
+
 handler = TestHandler()
 processor = ThriftTest.Processor(handler)
 transport = TSocket.TServerSocket(9090)