From: Wolfram Schneider Date: Fri, 13 Dec 2013 15:24:42 +0000 (+0000) Subject: match the end of 'Active clients' message X-Git-Tag: 0.9.1~51^2~3 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=ef657ef1632080dabd3bbe0b3d3fd372bc0ec6f7;p=mkws-moved-to-github.git match the end of 'Active clients' message --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index cce2bb7..77d9ba3 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -282,19 +282,21 @@ describe("Check status client counter", function () { it("check status clients", function () { waitsFor(function () { var clients = $("div#mkwsStat span.clients"); - if (clients.length == 1 && clients.text() == "0/1") { + if (clients.length == 1 && clients.text().match("0/1$")) { return true; } else { return false; } - }, "wait for status", 4 * 1000); + }, "wait for Active clients: 0/1", 4 * 1000); + /* runs(function () { var clients = $("div#mkwsStat span.clients"); debug("span.clients: " + clients.text()); expect(clients.text()).toEqual("0/1"); }); + */ });