summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/timeout/AllTests.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2014-07-15 10:22:40 +0200
committerBenoit Foucher <benoit@zeroc.com>2014-07-15 10:22:40 +0200
commit710a9221852d6c92b1727a429a33b38f1f949352 (patch)
tree6bc9ac9ed04a6b1858d8fc30282d4f18ef04abbb /cpp/test/Ice/timeout/AllTests.cpp
parent- Fix for ICE-5578 - Python build failure (diff)
downloadice-710a9221852d6c92b1727a429a33b38f1f949352.tar.bz2
ice-710a9221852d6c92b1727a429a33b38f1f949352.tar.xz
ice-710a9221852d6c92b1727a429a33b38f1f949352.zip
Fixed collocation optimization to use the dispatcher, minor test fixes
Diffstat (limited to 'cpp/test/Ice/timeout/AllTests.cpp')
-rw-r--r--cpp/test/Ice/timeout/AllTests.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/cpp/test/Ice/timeout/AllTests.cpp b/cpp/test/Ice/timeout/AllTests.cpp
index b41c91211f2..35b83246cb7 100644
--- a/cpp/test/Ice/timeout/AllTests.cpp
+++ b/cpp/test/Ice/timeout/AllTests.cpp
@@ -127,6 +127,8 @@ allTests(const Ice::CommunicatorPtr& communicator)
}
cout << "ok" << endl;
+ ByteSeq seq(10000000);
+
cout << "testing connection timeout... " << flush;
{
//
@@ -136,7 +138,6 @@ allTests(const Ice::CommunicatorPtr& communicator)
to->holdAdapter(500);
try
{
- ByteSeq seq(10000000);
to->sendData(seq);
test(false);
}
@@ -177,7 +178,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
catch(const Ice::InvocationTimeoutException&)
{
}
- to = TimeoutPrx::uncheckedCast(obj->ice_invocationTimeout(500));
+ to = TimeoutPrx::checkedCast(obj->ice_invocationTimeout(500));
test(connection == to->ice_getConnection());
try
{
@@ -251,7 +252,6 @@ allTests(const Ice::CommunicatorPtr& communicator)
to->holdAdapter(1000);
try
{
- ByteSeq seq(10000000);
to->sendData(seq);
test(false);
}
@@ -267,7 +267,6 @@ allTests(const Ice::CommunicatorPtr& communicator)
to->holdAdapter(500);
try
{
- ByteSeq seq(10000000);
to->sendData(seq);
test(false);
}
@@ -319,7 +318,6 @@ allTests(const Ice::CommunicatorPtr& communicator)
to = TimeoutPrx::uncheckedCast(to->ice_timeout(500));
try
{
- ByteSeq seq(10000000);
to->sendData(seq);
test(false);
}