Implement testAsync for python tests
authorDavid Reiss <dreiss@apache.org>
Wed, 11 Jun 2008 00:57:01 +0000 (00:57 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 11 Jun 2008 00:57:01 +0000 (00:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666412 13f79535-47bb-0310-9956-ffa450edef68

test/py/TestServer.py

index 0247bc2..bef5409 100755 (executable)
@@ -59,6 +59,11 @@ class TestHandler:
     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)