Add testAsync to ThriftTest.thrift which verifies async void works properly.
authorDavid Reiss <dreiss@apache.org>
Mon, 18 Feb 2008 02:11:44 +0000 (02:11 +0000)
committerDavid Reiss <dreiss@apache.org>
Mon, 18 Feb 2008 02:11:44 +0000 (02:11 +0000)
commit2ab6fe88e26b5570bcdb357fdf6c1ee84b37bd44
treea4710967e0da07e907396b54f973bb3d924c07ec
parent9590a4c9ccc2fde8b9c65407ec1e36e892db1db1
Add testAsync to ThriftTest.thrift which verifies async void works properly.

Summary:
  - testAsync takes a number of seconds to sleep. The test client makes sure
    that the RPC returns in less than 0.2 seconds even though it asks the server
    to sleep for 3 seconds.
  - Implemented this test for C++ and Java.

Test Plan:
  - ran cpp TestServer and TestClient and verified functionality
  - tested cpp and java test server/client against each other - tests passed

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665484 13f79535-47bb-0310-9956-ffa450edef68
test/ThriftTest.thrift
test/cpp/src/TestClient.cpp
test/cpp/src/TestServer.cpp
test/java/src/TestClient.java
test/java/src/TestServer.java