From: Wolfram Schneider Date: Wed, 23 Apr 2014 12:16:11 +0000 (+0000) Subject: mininum number of targets (active clients) is 1-9 (was 10+) X-Git-Tag: 1.0.0~894^2~1 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=628fcb727478a7ee7fb2a52bd3f564f44fe0235b;p=mkws-moved-to-github.git mininum number of targets (active clients) is 1-9 (was 10+) We are currently testing with 16 targets, so we never notice this until we disabled some solr targets and were down to 9 targets. --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 3eaa120..4b3117e 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -284,14 +284,14 @@ describe("Check active clients author", function () { it("check for active clients after limited author search", function () { waitsFor(function () { var clients = $("div.mkwsStat span.clients"); - //debug("clients: " + clients.text()); - return clients.length == 1 && clients.text().match("/[1-9]+[0-9]+$"); - }, "wait for Active clients: x/y", 5 * jasmine_config.second); + // debug("clients: " + clients.text()); + return clients.length == 1 && clients.text().match("/[1-9]+[0-9]*$"); + }, "wait for Active clients: x/y", 5.5 * jasmine_config.second); runs(function () { var clients = $("div.mkwsStat span.clients"); debug("span.clients: " + clients.text()); - expect(clients.text()).toMatch("/[1-9]+[0-9]+$"); + expect(clients.text()).toMatch("/[1-9]+[0-9]*$"); // exact match of active clients (e.g. a SP misconfiguration) if (jasmine_config.active_clients) {