From: Michael Wallner Date: Thu, 22 Oct 2020 05:53:25 +0000 (+0200) Subject: testing: replicated deletes X-Git-Tag: 1.1.0-beta1~186 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;ds=sidebyside;h=e764dffccfcf30a85712ae9215853f5ddb986c26;p=m6w6%2Flibmemcached testing: replicated deletes --- diff --git a/test/tests/memcached/replication.cpp b/test/tests/memcached/replication.cpp index 9c8a1c60..02c66901 100644 --- a/test/tests/memcached/replication.cpp +++ b/test/tests/memcached/replication.cpp @@ -64,7 +64,7 @@ TEST_CASE("memcached_replication") { memcached_result_free(&r); } - SECTION("randomize reads") { + SECTION("deletes and randomize reads") { REQUIRE_SUCCESS(memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_RANDOMIZE_REPLICA_READ, 1)); for (auto i = 0; i < NUM_KEYS; ++i) { memcached_return_t rc; @@ -78,8 +78,10 @@ TEST_CASE("memcached_replication") { ++n; REQUIRE_SUCCESS(rc); } - CHECK(n == NUM_KEYS); + CHECK(n + i == NUM_KEYS); REQUIRE_RC(MEMCACHED_END, rc); + + REQUIRE_SUCCESS(memcached_delete(memc, chr[i], len[i], 0)); } }