X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Flibmemcached_world.h;h=4793569c1e14b56165ad110b7e44df961a322f30;hb=9cde1fdc1bbd49775c75a83e44c942354129f1d5;hp=45927a23afac06d7afcf66e1c24d3a9f044d7aae;hpb=a4456cc10079f2e6f648befc91657f2723c825e5;p=awesomized%2Flibmemcached diff --git a/tests/libmemcached_world.h b/tests/libmemcached_world.h index 45927a23..4793569c 100644 --- a/tests/libmemcached_world.h +++ b/tests/libmemcached_world.h @@ -96,10 +96,10 @@ test_return_t world_flush(libmemcached_test_container_st *container) test_return_t world_pre_run(libmemcached_test_container_st *container) { - for (uint32_t loop= 0; loop < memcached_server_list_count(container->construct.servers); loop++) + for (uint32_t loop= 0; loop < memcached_server_list_count(container->memc->servers); loop++) { - memcached_server_st *instance= - memcached_server_instance_fetch(container->memc, loop); + memcached_server_instance_st instance= + memcached_server_instance_by_position(container->memc, loop); test_true(instance->fd == -1); test_true(instance->cursor_active == 0); @@ -133,6 +133,10 @@ test_return_t world_destroy(libmemcached_test_container_st *container) server_shutdown(construct); +#ifdef LIBMEMCACHED_WITH_SASL_SUPPORT + sasl_done(); +#endif + return TEST_SUCCESS; }