testing: memcp quit/flush when udp/buffering
authorMichael Wallner <mike@php.net>
Tue, 10 Nov 2020 13:15:14 +0000 (14:15 +0100)
committerMichael Wallner <mike@php.net>
Tue, 10 Nov 2020 13:15:14 +0000 (14:15 +0100)
test/tests/bin/memcp.cpp

index fc61e57f572ee72d66e67325a5ffadc5b4a57aff..9f891ccb0a01746ad9b53334413553c2097e3b35 100644 (file)
@@ -77,6 +77,10 @@ TEST_CASE("bin/memcp") {
         REQUIRE(output == "");
         REQUIRE(ok);
 
+        if (udp_buffer) {
+          memcached_quit(*memc);
+        }
+
         size_t len;
         memcached_return_t rc;
         Malloced val(memcached_get(*memc, S(temp.getFn()), &len, nullptr, &rc));