You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by rp...@apache.org on 2023/05/03 08:43:30 UTC

svn commit: r1909590 - /apr/apr/trunk/test/testmemcache.c

Author: rpluem
Date: Wed May  3 08:43:30 2023
New Revision: 1909590

URL: http://svn.apache.org/viewvc?rev=1909590&view=rev
Log:
* Wait for the mock memcached to shutdown the socket

Modified:
    apr/apr/trunk/test/testmemcache.c

Modified: apr/apr/trunk/test/testmemcache.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testmemcache.c?rev=1909590&r1=1909589&r2=1909590&view=diff
==============================================================================
--- apr/apr/trunk/test/testmemcache.c (original)
+++ apr/apr/trunk/test/testmemcache.c Wed May  3 08:43:30 2023
@@ -719,6 +719,9 @@ static void test_connection_validation(a
     rv = apr_memcache_version(memserver, p, &result);
     ABTS_ASSERT(tc, "Couldn't get initial version", rv == APR_SUCCESS);
 
+    /* Wait for the mock memcached to shutdown the socket */
+    apr_sleep(apr_time_from_sec(1));
+
     rv = apr_memcache_version(memserver, p, &result);
     ABTS_ASSERT(tc, "Couldn't get version after connection shutdown", rv == APR_SUCCESS);