diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2023-09-23 09:28:16 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2023-09-23 09:28:16 -0400 |
commit | 339107e4a3260c5ad564cb0325d94d166a27a8a5 (patch) | |
tree | de2a42b962c52e66ae7f172ed4073b6928544251 /indra/test/io.cpp | |
parent | 013f00fc67d33423f8a8c2e1b4800ac13737ec77 (diff) |
DRTVWR-589: Further timing-proof pipe and pump fitness test.
Diffstat (limited to 'indra/test/io.cpp')
-rw-r--r-- | indra/test/io.cpp | 6 |
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 |