From: Date: Mon, 30 Jun 2008 18:48:20 +0000 (-0700) Subject: Adding test for sort. X-Git-Tag: 0.22~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;ds=inline;h=a33109e47f041d91c191b1352fb0bfde825a4ef9;p=awesomized%2Flibmemcached Adding test for sort. --- diff --git a/tests/function.c b/tests/function.c index 620ecc9d..253f21bd 100644 --- a/tests/function.c +++ b/tests/function.c @@ -116,9 +116,12 @@ test_return server_sort2_test(memcached_st *ptr) rc= memcached_server_add(local_memc, "MEMCACHED_BEHAVIOR_SORT_HOSTS", 43043); assert(rc == MEMCACHED_SUCCESS); + assert(local_memc->hosts[0].port == 43043); rc= memcached_server_add(local_memc, "MEMCACHED_BEHAVIOR_SORT_HOSTS", 43042); assert(rc == MEMCACHED_SUCCESS); + assert(local_memc->hosts[0].port == 43042); + assert(local_memc->hosts[1].port == 43043); callbacks[0]= server_display_function; memcached_server_cursor(local_memc, callbacks, (void *)&bigger, 1);