projects
/
awesomized
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
7ac9bfd
)
testing: replicated deletes
author
Michael Wallner
<mike@php.net>
Thu, 22 Oct 2020 05:53:25 +0000
(07:53 +0200)
committer
Michael Wallner
<mike@php.net>
Thu, 22 Oct 2020 05:53:25 +0000
(07:53 +0200)
test/tests/memcached/replication.cpp
patch
|
blob
|
history
diff --git
a/test/tests/memcached/replication.cpp
b/test/tests/memcached/replication.cpp
index 9c8a1c60f4b51cfd3f9206db0938537b3e6584d8..02c66901043f11e15278afff707ea1047598f7fe 100644
(file)
--- 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));
}
}