summaryrefslogtreecommitdiff
path: root/TAO/tests/AMI_Buffering
diff options
context:
space:
mode:
authorelliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-11-09 14:28:27 +0000
committerelliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-11-09 14:28:27 +0000
commitaca1bf5e8f42aef56fd6838cdf34d6a3088f89a4 (patch)
treef2d99d8bc89b153b8b04ff2314ec90ecc419dd4d /TAO/tests/AMI_Buffering
parent2d1dbfa6a3d5e3cf0b30fa85e43e06da99685269 (diff)
downloadATCD-aca1bf5e8f42aef56fd6838cdf34d6a3088f89a4.tar.gz
ChangeLogTag: Tue Nov 9 08:27:30 2004 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'TAO/tests/AMI_Buffering')
-rw-r--r--TAO/tests/AMI_Buffering/client.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/TAO/tests/AMI_Buffering/client.cpp b/TAO/tests/AMI_Buffering/client.cpp
index 856abb57673..a17ba653fd5 100644
--- a/TAO/tests/AMI_Buffering/client.cpp
+++ b/TAO/tests/AMI_Buffering/client.cpp
@@ -738,7 +738,10 @@ run_timeout_reactive (CORBA::ORB_ptr orb,
break;
}
- if (elapsed.msec () > 2 * TIMEOUT_MILLISECONDS)
+ // Slightly more than the timeout is allowed to pass due
+ // to scheduler differences.
+ static const unsigned int real_timeout = 3 * TIMEOUT_MILLISECONDS;
+ if (elapsed.msec () > real_timeout)
{
test_failed = 1;
ACE_DEBUG ((LM_DEBUG,
@@ -746,7 +749,7 @@ run_timeout_reactive (CORBA::ORB_ptr orb,
"timeout threshold. "
"Elapsed = %d, Timeout = %d msecs\n",
i,
- elapsed.msec (), TIMEOUT_MILLISECONDS));
+ elapsed.msec (), real_timeout));
break;
}
}