X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=tests%2Flibmemcached_world.h;h=d51d3ad7bc0e6439c6e775e6994cb9f07b0b1e29;hb=8e0842da789204305bdfd5f06c87c5842c5b9451;hp=4092d95104773c9930c151e4d4b4c34cb31db952;hpb=d38a24defa282f8c05835c16ad1633ffb528d82c;p=m6w6%2Flibmemcached diff --git a/tests/libmemcached_world.h b/tests/libmemcached_world.h index 4092d951..d51d3ad7 100644 --- a/tests/libmemcached_world.h +++ b/tests/libmemcached_world.h @@ -96,12 +96,13 @@ test_return_t world_flush(libmemcached_test_container_st *container) test_return_t world_pre_run(libmemcached_test_container_st *container) { - uint32_t loop; - - for (loop= 0; loop < memcached_server_list_count(container->construct.servers); loop++) + for (uint32_t loop= 0; loop < memcached_server_list_count(container->construct.servers); loop++) { - test_truth(container->memc->hosts[loop].fd == -1); - test_truth(container->memc->hosts[loop].cursor_active == 0); + memcached_server_st *instance= + memcached_server_instance_fetch(container->memc, loop); + + test_truth(instance->fd == -1); + test_truth(instance->cursor_active == 0); } return TEST_SUCCESS;