From db09d5893b9d157a49a811267da3b2c2f5eafa22 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Mon, 3 Oct 2011 12:01:10 -0700 Subject: [PATCH] On success, we should exit the loop. --- tests/mem_functions.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/mem_functions.cc b/tests/mem_functions.cc index d0a59fdc..18e092e4 100644 --- a/tests/mem_functions.cc +++ b/tests/mem_functions.cc @@ -4374,6 +4374,11 @@ static test_return_t connection_pool3_test(memcached_st *memc) struct timespec relative_time= { 0, 0 }; pop_memc= memcached_pool_fetch(pool, &relative_time, &rc); + if (memcached_success(rc)) + { + break; + } + if (memcached_failed(rc)) { test_null(pop_memc); -- 2.30.2