Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
neitomic committed Jun 22, 2017
1 parent 2c9cf2d commit 6c3a3d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Expand Up @@ -85,6 +85,10 @@ class ESHttpClientCRUDTest extends FunSuite with BeforeAndAfterAll {
assert(resp.getVersion == 3)
}

test("Bulk api should return correct response") {

}

override def afterAll(): Unit = {
client.close()
}
Expand Down
Expand Up @@ -42,8 +42,9 @@ class EsHttpClientSearchTest extends FunSuite with BeforeAndAfterAll {
assert(client.index(index, `type`, Some(id), docBody).getId == "1")

client.refresh(Set(index))
//Wait 2 secs for index refresh
Thread.sleep(2000)
//Wait 5 secs for index refresh
println("Sleep 5 seconds for index refresh...")
Thread.sleep(5000)

var resp = client.search(index, `type`, SearchSourceBuilder.searchSource().query(QueryBuilders.queryStringQuery("foo")).toString)
assert(resp.hits.total == 1L)
Expand Down

0 comments on commit 6c3a3d1

Please sign in to comment.