diff options
Diffstat (limited to 'cpp/test/Ice/retry/AllTests.cpp')
-rw-r--r-- | cpp/test/Ice/retry/AllTests.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/cpp/test/Ice/retry/AllTests.cpp b/cpp/test/Ice/retry/AllTests.cpp index 87306b5b970..b8d3d471822 100644 --- a/cpp/test/Ice/retry/AllTests.cpp +++ b/cpp/test/Ice/retry/AllTests.cpp @@ -240,6 +240,27 @@ allTests(const Ice::CommunicatorPtr& communicator, const Ice::CommunicatorPtr& c testRetryCount(4); cout << "ok" << endl; + if(retry1->ice_getCachedConnection()) + { + cout << "testing non-idempotent operation with bi-dir proxy... " << flush; + try + { + retry1->ice_fixed(retry1->ice_getCachedConnection())->opIdempotent(4); + } + catch(const Ice::Exception& ex) + { + } + testInvocationCount(1); + testFailureCount(1); + testRetryCount(0); + test(retry1->opIdempotent(4) == 4); + testInvocationCount(1); + testFailureCount(0); + // It suceeded after 3 retry because of the failed opIdempotent on the fixed proxy above + testRetryCount(3); + cout << "ok" << endl; + } + cout << "testing non-idempotent operation... " << flush; try { |