wating for 80 records is enough
[mkws-moved-to-github.git] / test / spec / mkws-pazpar2.js
index 2651e9f..e7138bd 100644 (file)
@@ -94,15 +94,15 @@ describe("Check pazpar2 navigation", function () {
 
 describe("Check pazpar2 hit counter", function () {
     it("check running search hit counter", function () {
-        var max_time = 10; // in seconds
-        var expected_hits = 116; // at least expected hit counter
+        var max_time = 16; // in seconds
+        var expected_hits = 80; // at least expected hit counter
         var hits = 0;
 
         waitsFor(function () {
             hits = get_hit_counter();
 
             return hits >= expected_hits;
-        }, "Expect N hits in x seconds", max_time * 1000);
+        }, "Expect " + expected_hits + " hits", max_time * 1000);
 
 
         runs(function () {