X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=test%2Flib%2FCluster.cpp;h=e1375bfde90ed50c65fcb52a3f0cff54c3be35fa;hb=a93908cc9c40eef179d33a89fc011e2e3c54c438;hp=a4f8a3ae3c150fa4bbdcd3c40df313680941e53f;hpb=83cd358dea85840d916b6a69e8b0b20fe7a4e4e0;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(); }