testing: flaky memcp udp
authorMichael Wallner <mike@php.net>
Tue, 10 Nov 2020 14:21:45 +0000 (15:21 +0100)
committerMichael Wallner <mike@php.net>
Tue, 10 Nov 2020 14:21:45 +0000 (15:21 +0100)
test/tests/bin/memcp.cpp

index 9f891ccb0a01746ad9b53334413553c2097e3b35..cdd85e59cb3e9306181e1c3ba195271860ad431c 100644 (file)
@@ -77,8 +77,9 @@ TEST_CASE("bin/memcp") {
         REQUIRE(output == "");
         REQUIRE(ok);
 
-        if (udp_buffer) {
+        if (udp_buffer == 1) {
           memcached_quit(*memc);
+          this_thread::sleep_for(500ms);
         }
 
         size_t len;