Merge branch 'catch' of github.com:m6w6/libmemcached into gh-actions
[m6w6/libmemcached] / test / lib / Server.hpp
index 44fd5e99812abd0fe7fc01f47b7427f42ab06a2b..b90ac8d7a4a38943695aca5a0b8ad4309b31411e 100644 (file)
@@ -33,7 +33,7 @@ public:
     pipe = exchange(s.pipe, -1);
     status = exchange(s.status, 0);
     signalled = exchange(s.signalled, {});
-    socket_or_port = exchange(s.socket_or_port, {});
+    socket_or_port = exchange(s.socket_or_port, 11211);
     output = exchange(s.output, {});
     return *this;
   };
@@ -59,6 +59,7 @@ public:
   bool signal(int signo = SIGTERM);
   bool check();
   bool isListening();
+  bool ensureListening();
 
   bool wait(int flags = 0);
   bool tryWait();