X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Freplication.cc;h=be1fd7e2bfb24d5dce52a6f2776e105598168e3a;hb=5cb5e0d2dacc49ea143b8e059b0f90251d0e2c23;hp=1c210b0847113ab4851062b1d8177dabf20978fa;hpb=28602fd2f5f1c758b50cd82d4545da8e6c55f5c7;p=m6w6%2Flibmemcached diff --git a/tests/replication.cc b/tests/replication.cc index 1c210b08..be1fd7e2 100644 --- a/tests/replication.cc +++ b/tests/replication.cc @@ -40,7 +40,8 @@ using namespace libtest; -#include +#include +#include #include #include @@ -249,10 +250,10 @@ test_return_t replication_delete_test(memcached_st *memc_just_cloned) // Make one copy test_compare(MEMCACHED_SUCCESS, memcached_behavior_set(memc_replicated, MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS, 1UL)); - test_compare(1UL, memcached_behavior_get(memc_replicated, MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS)); + test_compare(uint64_t(1), memcached_behavior_get(memc_replicated, MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS)); test_compare(MEMCACHED_SUCCESS, memcached_behavior_set(memc_not_replicate, MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS, 0UL)); - test_compare(0UL, memcached_behavior_get(memc_not_replicate, MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS)); + test_compare(uint64_t(0), memcached_behavior_get(memc_not_replicate, MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS)); for (size_t x= 0; x < test_array_length(keys); ++x) { @@ -265,8 +266,8 @@ test_return_t replication_delete_test(memcached_st *memc_just_cloned) memcached_flush_buffers(memc_replicated); // Confirm keys with replication read - test_compare(TEST_SUCCESS, confirm_keys_exist(memc_replicated, keys, test_array_length(keys), true)); - test_compare(TEST_SUCCESS, confirm_keys_exist(memc_not_replicate, keys, test_array_length(keys), true)); + test_compare(TEST_SUCCESS, confirm_keys_exist(memc_replicated, keys, test_array_length(keys), true, true)); + test_compare(TEST_SUCCESS, confirm_keys_exist(memc_not_replicate, keys, test_array_length(keys), true, true)); /* Delete the items from all of the servers except 1, we use the non replicated memc so that we know we deleted the keys */ for (size_t x= 0; x < test_array_length(keys); ++x)