* Wait for the mock memcached to shutdown the socket

git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1909590 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/testmemcache.c b/test/testmemcache.c
index 20fad58..6e5de77 100644
--- a/test/testmemcache.c
+++ b/test/testmemcache.c
@@ -719,6 +719,9 @@
     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);