From 339107e4a3260c5ad564cb0325d94d166a27a8a5 Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Sat, 23 Sep 2023 09:28:16 -0400 Subject: DRTVWR-589: Further timing-proof pipe and pump fitness test. --- indra/test/io.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'indra/test') 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 -- cgit v1.2.3