summaryrefslogtreecommitdiff
path: root/indra/test/io.cpp
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-09-23 09:28:16 -0400
committerNat Goodspeed <nat@lindenlab.com>2023-09-23 09:28:16 -0400
commit339107e4a3260c5ad564cb0325d94d166a27a8a5 (patch)
treede2a42b962c52e66ae7f172ed4073b6928544251 /indra/test/io.cpp
parent013f00fc67d33423f8a8c2e1b4800ac13737ec77 (diff)
DRTVWR-589: Further timing-proof pipe and pump fitness test.
Diffstat (limited to 'indra/test/io.cpp')
-rw-r--r--indra/test/io.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/test/io.cpp b/indra/test/io.cpp
index 83e45661f8..0a05986c00 100644
--- a/indra/test/io.cpp
+++ b/indra/test/io.cpp
@@ -45,6 +45,7 @@
#include "llcommon.h"
#include "lluuid.h"
#include "llinstantmessage.h"
+#include "stringize.h"
namespace tut
{
@@ -1170,8 +1171,11 @@ namespace tut
{
pump_loop(mPump, 0.1f);
}
+ // We used to test for count == 2 here, but on a slow test machine it
+ // can happen that not just one but two chains close before we reach
+ // this point.
count = mPump->runningChains();
- ensure_equals("client chain timed out ", count, 2);
+ ensure(stringize("client chain timed out: count ", count), count < 3);
LL_DEBUGS() << "** client chain should be closed." << LL_ENDL;
// At this point, the socket should be closed by the timeout