projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2e82492
)
expect at least one hit while waiting for less hits for an limit source search
author
Wolfram Schneider
<wosch@indexdata.dk>
Sat, 12 Apr 2014 16:40:21 +0000
(16:40 +0000)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Sat, 12 Apr 2014 16:40:21 +0000
(16:40 +0000)
test/spec/mkws-pazpar2.js
patch
|
blob
|
history
diff --git
a/test/spec/mkws-pazpar2.js
b/test/spec/mkws-pazpar2.js
index
2e0d898
..
c97cea7
100644
(file)
--- a/
test/spec/mkws-pazpar2.js
+++ b/
test/spec/mkws-pazpar2.js
@@
-332,7
+332,9
@@
describe("Check Termlist", function () {
// Note: it may happens that limited source search returns the same number of hits
// as before. Thats not really an error, but unfortunate
waitsFor(function () {
// Note: it may happens that limited source search returns the same number of hits
// as before. Thats not really an error, but unfortunate
waitsFor(function () {
- return waitcount >= 2 && get_hit_counter() <= hits_all_targets ? true : false;
+ var hits_single_target = get_hit_counter();
+
+ return waitcount >= 2 && hits_single_target > 0 && hits_single_target <= hits_all_targets ? true : false;
}, "Limited source search for less than " + hits_all_targets + " hits", 5 * jasmine_config.second);
runs(function () {
}, "Limited source search for less than " + hits_all_targets + " hits", 5 * jasmine_config.second);
runs(function () {