summaryrefslogtreecommitdiff
path: root/cpp/test
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2020-02-20 19:22:03 +0100
committerBenoit Foucher <benoit@zeroc.com>2020-02-20 19:22:03 +0100
commit7e164511561d3c4fa0de8b1dcb24fc4a25b858a4 (patch)
treefb60bbddb1138113b611648939a730a7871c19e3 /cpp/test
parentRemoved unused SSLEngine.decodeASN1Length method, fixes #686 (diff)
downloadice-7e164511561d3c4fa0de8b1dcb24fc4a25b858a4.tar.bz2
ice-7e164511561d3c4fa0de8b1dcb24fc4a25b858a4.tar.xz
ice-7e164511561d3c4fa0de8b1dcb24fc4a25b858a4.zip
Don't retry invocations on fixed proxies, fixes #671
Diffstat (limited to 'cpp/test')
-rw-r--r--cpp/test/Ice/retry/AllTests.cpp21
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
{