1 #include "test/lib/common.hpp"
2 #include "test/lib/MemcachedCluster.hpp"
4 TEST_CASE("memcached_regression_lp1021819") {
5 auto test
= MemcachedCluster::network();
6 auto memc
= &test
.memc
;
8 CHECK(MEMCACHED_SUCCESS
== memcached_behavior_set(memc
, MEMCACHED_BEHAVIOR_SND_TIMEOUT
, 2'000'000));
9 CHECK(MEMCACHED_SUCCESS
== memcached_behavior_set(memc
, MEMCACHED_BEHAVIOR_RCV_TIMEOUT
, 2'000'000));
11 memcached_return_t rc
;
12 Malloced
val(memcached_get(memc
, S("not-found"), nullptr, nullptr, &rc
));
13 REQUIRE(MEMCACHED_NOTFOUND
== rc
);