Permalink
Browse files

Refresh indices here instead

References #250.
  • Loading branch information...
1 parent 491578b commit 11b6c39e2e2bdac553f46d4cf7da06b92f1d719c @michaelklishin michaelklishin committed Mar 6, 2017
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/clojurewerkz/elastisch/native_api/indices_test.clj
@@ -93,7 +93,8 @@
(deftest ^{:indexing true :native true} test-index-stats-for-all-indexes
(idx/create conn "group1")
(idx/create conn "group2")
- (Thread/sleep 1000)
+ (idx/refresh conn "group1")
+ (idx/refresh conn "group2")
(let [res (idx/stats conn {:docs true :store true :indexing true})]
(is (contains? res :_all))
(is (contains? res :indices))

0 comments on commit 11b6c39

Please sign in to comment.