From: Date: Wed, 9 Jan 2008 07:08:48 +0000 (-0800) Subject: Incorrect polltimeout set on test (Patch by Kevin) X-Git-Tag: 0.13~5^2~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=85a43151d5f1cd4548e4ceda5230a2171e06a2c2;p=awesomized%2Flibmemcached Incorrect polltimeout set on test (Patch by Kevin) --- diff --git a/tests/function.c b/tests/function.c index 0ecd7b14..db224f95 100644 --- a/tests/function.c +++ b/tests/function.c @@ -1480,7 +1480,7 @@ uint8_t user_supplied_bug10(memcached_st *memc) memcached_behavior_set(mclone, MEMCACHED_BEHAVIOR_NO_BLOCK, &set); memcached_behavior_set(mclone, MEMCACHED_BEHAVIOR_TCP_NODELAY, &set); timeout= 2; - memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_POLL_TIMEOUT, &timeout); + memcached_behavior_set(mclone, MEMCACHED_BEHAVIOR_POLL_TIMEOUT, &timeout); value = (char*)malloc(value_length * sizeof(char)); @@ -1521,7 +1521,7 @@ uint8_t user_supplied_bug11(memcached_st *memc) memcached_behavior_set(mclone, MEMCACHED_BEHAVIOR_NO_BLOCK, &set); memcached_behavior_set(mclone, MEMCACHED_BEHAVIOR_TCP_NODELAY, &set); timeout= -1; - memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_POLL_TIMEOUT, &timeout); + memcached_behavior_set(mclone, MEMCACHED_BEHAVIOR_POLL_TIMEOUT, &timeout); timeout= (int32_t)memcached_behavior_get(memc, MEMCACHED_BEHAVIOR_POLL_TIMEOUT);