diff options
author | Benoit Foucher <benoit@zeroc.com> | 2017-06-22 16:29:39 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2017-06-22 16:29:39 +0200 |
commit | 813b35687510f183458632f3c9776ffc545a751d (patch) | |
tree | bde48336d48168472ba6cce7e172c40ec97defeb /php/test | |
parent | log unexpected exception (diff) | |
download | ice-813b35687510f183458632f3c9776ffc545a751d.tar.bz2 ice-813b35687510f183458632f3c9776ffc545a751d.tar.xz ice-813b35687510f183458632f3c9776ffc545a751d.zip |
Disable unreliable Ice/timeout PHP test
Diffstat (limited to 'php/test')
-rw-r--r-- | php/test/Ice/timeout/Client.php | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/php/test/Ice/timeout/Client.php b/php/test/Ice/timeout/Client.php index af228b8c65a..e6d0dcc9cc8 100644 --- a/php/test/Ice/timeout/Client.php +++ b/php/test/Ice/timeout/Client.php @@ -356,24 +356,26 @@ function allTests($communicator) // // Verify that timeout set via ice_timeout() is still used for requests. // - $timeout->op(); // Ensure adapter is active. - $to = $to->ice_timeout(50)->ice_uncheckedCast("::Test::Timeout"); - connect($to); - $timeout->holdAdapter(1000); // Use larger value, marshalling of byte arrays is much slower in PHP - try - { - $to->sendData($seq); - test(false); - } - catch(Exception $ex) - { - // Expected. - if(!($ex instanceof $TimeoutException)) - { - echo($ex); - test(false); - } - } + // This test is not reliable enough with slow VMs so we disable it. + // + // $timeout->op(); // Ensure adapter is active. + // $to = $to->ice_timeout(100)->ice_uncheckedCast("::Test::Timeout"); + // connect($to); + // $timeout->holdAdapter(1000); // Use larger value, marshalling of byte arrays is much slower in PHP + // try + // { + // $to->sendData($seq); + // test(false); + // } + // catch(Exception $ex) + // { + // // Expected. + // if(!($ex instanceof $TimeoutException)) + // { + // echo($ex); + // test(false); + // } + // } $comm->destroy(); } { |