Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public void testSimpleOpenClose() throws Exception {

logger.info("--> trying to index into a closed index ...");
try {
client().prepareIndex("test", "type1", "1").setSource("field1", "value1").setTimeout("1s").execute().actionGet();
client().prepareIndex("test", "type1", "1").setSource("field1", "value1").execute().actionGet();
fail();
} catch (IndexClosedException e) {
// all is well
Expand Down Expand Up @@ -170,7 +170,7 @@ public void testSimpleOpenClose() throws Exception {

logger.info("--> trying to index into a closed index ...");
try {
client().prepareIndex("test", "type1", "1").setSource("field1", "value1").setTimeout("1s").execute().actionGet();
client().prepareIndex("test", "type1", "1").setSource("field1", "value1").execute().actionGet();
fail();
} catch (IndexClosedException e) {
// all is well
Expand Down Expand Up @@ -231,7 +231,7 @@ public void testJustMasterNodeAndJustDataNode() throws Exception {
logger.info("--> create an index");
client().admin().indices().prepareCreate("test").execute().actionGet();

client().prepareIndex("test", "type1").setSource("field1", "value1").setTimeout("100ms").execute().actionGet();
client().prepareIndex("test", "type1").setSource("field1", "value1").execute().actionGet();
}

public void testTwoNodesSingleDoc() throws Exception {
Expand Down