return MEMCACHED_SUCCESS;
}
-TEST_CASE("memcached util") {
+TEST_CASE("memcached_util") {
SECTION("version_check") {
auto test = MemcachedCluster::mixed();
auto memc = &test.memc;
REQUIRE_SUCCESS(memcached_server_cursor(memc, fptr, nullptr, 1));
}
+
+ SECTION("flush") {
+ auto test = MemcachedCluster::network();
+
+ for (auto &server : test.cluster.getServers()) {
+ memcached_return_t rc;
+ REQUIRE(libmemcached_util_flush("localhost", get<int>(server.getSocketOrPort()), &rc));
+ REQUIRE_SUCCESS(rc);
+ }
+ }
}