From: Brian Aker Date: Mon, 3 Oct 2011 19:01:10 +0000 (-0700) Subject: On success, we should exit the loop. X-Git-Tag: 1.0.2~9^2~2^2~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=db09d5893b9d157a49a811267da3b2c2f5eafa22;p=awesomized%2Flibmemcached On success, we should exit the loop. --- 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);