From 628fcb727478a7ee7fb2a52bd3f564f44fe0235b Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Wed, 23 Apr 2014 12:16:11 +0000 Subject: [PATCH] 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. --- test/spec/mkws-pazpar2.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) { -- 1.7.10.4