add small sleep
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/7002051c Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/7002051c Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/7002051c Branch: refs/heads/USERGRID-347 Commit: 7002051c8993d7791ff50c1257e82155e60ab818 Parents: e64e15f Author: Shawn Feldman <[email protected]> Authored: Fri Mar 20 12:51:31 2015 -0600 Committer: Shawn Feldman <[email protected]> Committed: Fri Mar 20 12:51:31 2015 -0600 ---------------------------------------------------------------------- .../src/test/java/org/apache/usergrid/CoreApplication.java | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/7002051c/stack/core/src/test/java/org/apache/usergrid/CoreApplication.java ---------------------------------------------------------------------- diff --git a/stack/core/src/test/java/org/apache/usergrid/CoreApplication.java b/stack/core/src/test/java/org/apache/usergrid/CoreApplication.java index ea7a5de..00972ea 100644 --- a/stack/core/src/test/java/org/apache/usergrid/CoreApplication.java +++ b/stack/core/src/test/java/org/apache/usergrid/CoreApplication.java @@ -216,6 +216,12 @@ public class CoreApplication implements Application, TestRule { @Override public void refreshIndex() { + try{ + Thread.sleep(100); + }catch (InterruptedException ie){ + + } + entityIndex.refresh(); }
