From: Brian Aker Date: Fri, 7 Oct 2011 13:20:29 +0000 (-0700) Subject: Remove test assumption about port 0 (it assumed no other memcached server would be... X-Git-Tag: 1.0.2~8^2~1^2~4 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=6fc2fcd11cd3c218e2933e9650d0da1aaf272a14;p=awesomized%2Flibmemcached Remove test assumption about port 0 (it assumed no other memcached server would be running on default) --- diff --git a/tests/plus.cpp b/tests/plus.cpp index d9d00ad1..e020cdd9 100644 --- a/tests/plus.cpp +++ b/tests/plus.cpp @@ -205,17 +205,15 @@ static test_return_t mget_test(memcached_st *original) static test_return_t basic_behavior(memcached_st *original) { Memcache memc(original); - uint64_t value= 1; - test_true(memc.setBehavior(MEMCACHED_BEHAVIOR_VERIFY_KEY, value)); - uint64_t behavior= memc.getBehavior(MEMCACHED_BEHAVIOR_VERIFY_KEY); - test_compare(behavior, value); + test_true(memc.setBehavior(MEMCACHED_BEHAVIOR_VERIFY_KEY, true)); + test_compare(true, memc.getBehavior(MEMCACHED_BEHAVIOR_VERIFY_KEY)); return TEST_SUCCESS; } static test_return_t error_test(memcached_st *) { - Memcache memc("--server=localhost:0"); + Memcache memc("--server=localhost:178"); std::vector value; test_false(memc.set("key", value, time_t(0), uint32_t(0))); @@ -227,7 +225,7 @@ static test_return_t error_test(memcached_st *) static test_return_t error_std_string_test(memcached_st *) { - Memcache memc("--server=localhost:0"); + Memcache memc("--server=localhost:178"); std::vector value; test_false(memc.set("key", value, time_t(0), uint32_t(0))); @@ -241,7 +239,7 @@ static test_return_t error_std_string_test(memcached_st *) static test_return_t error_memcached_return_t_test(memcached_st *) { - Memcache memc("--server=localhost:0"); + Memcache memc("--server=localhost:178"); std::vector value; test_false(memc.set("key", value, time_t(0), uint32_t(0)));