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:
6cd9945
)
wait a little bit for source facets to avoid race conditions of source facets updates...
author
Wolfram Schneider
<wosch@indexdata.dk>
Sun, 10 May 2015 16:06:25 +0000
(16:06 +0000)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Sun, 10 May 2015 16:06:25 +0000
(16:06 +0000)
test/spec/mkws-pazpar2.js
patch
|
blob
|
history
diff --git
a/test/spec/mkws-pazpar2.js
b/test/spec/mkws-pazpar2.js
index
1717551
..
39a8461
100644
(file)
--- a/
test/spec/mkws-pazpar2.js
+++ b/
test/spec/mkws-pazpar2.js
@@
-351,6
+351,19
@@
describe("Check active clients author", function () {
}
});
});
}
});
});
+
+ // avoid race conditions of source facets updates
+ it("wait a little bit for source facets", function () {
+ // wait a half second, to show the target view
+ var waittime = 0.5;
+ var time = (new Date).getTime();
+
+ waitsFor(function () {
+ return (new Date).getTime() - time > waittime * jasmine_config.second ? true : false;
+ }, "wait some miliseconds", (waittime + 0.5) * jasmine_config.second);
+
+ runs(function () {});
+ });
});
describe("Check Source Facets", function () {
});
describe("Check Source Facets", function () {