testing: avoid default port
authorMichael Wallner <mike@php.net>
Mon, 19 Oct 2020 14:28:21 +0000 (16:28 +0200)
committerMichael Wallner <mike@php.net>
Mon, 19 Oct 2020 14:28:21 +0000 (16:28 +0200)
test/tests/lib.cpp

index aac8f436705a9465bacfc43973b42518003e563a..ab5bc7f5e04a529e3c9646620fcc34b6a571aa86 100644 (file)
@@ -4,7 +4,10 @@
 #include "test/lib/Server.hpp"
 
 TEST_CASE("lib/Server") {
-  Server server{MEMCACHED_BINARY, {Server::arg_t{"-v"}}};
+  Server server{MEMCACHED_BINARY, {
+    Server::arg_t{"-v"},
+    Server::arg_pair_t{"-p", random_port_string}
+  }};
 
   SECTION("starts and listens") {