X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=test%2Flib%2FCluster.cpp;h=e1375bfde90ed50c65fcb52a3f0cff54c3be35fa;hb=e9b1c46e3490e2940ec36cfa53ffcee5945a27d2;hp=a4f8a3ae3c150fa4bbdcd3c40df313680941e53f;hpb=4d48a64682e4921bda97f1e5ae30321f0cb2b15b;p=awesomized%2Flibmemcached diff --git a/test/lib/Cluster.cpp b/test/lib/Cluster.cpp index a4f8a3ae..e1375bfd 100644 --- a/test/lib/Cluster.cpp +++ b/test/lib/Cluster.cpp @@ -8,7 +8,10 @@ Cluster::Cluster(Server serv, uint16_t cnt) , proto{move(serv)} { if (count < 4) { - count = 4; + count = stoi(getenv_else("MEMCACHED_CLUSTER", "4")); + } + if (!count) { + count = 1; } reset(); }