@@ -124,7 +124,7 @@ public void testSimpleOpenClose() throws Exception {
124
124
125
125
logger .info ("--> trying to index into a closed index ..." );
126
126
try {
127
- client ().prepareIndex ("test" , "type1" , "1" ).setSource ("field1" , "value1" ).setTimeout ( "1s" ). execute ().actionGet ();
127
+ client ().prepareIndex ("test" , "type1" , "1" ).setSource ("field1" , "value1" ).execute ().actionGet ();
128
128
fail ();
129
129
} catch (IndexClosedException e ) {
130
130
// all is well
@@ -168,7 +168,7 @@ public void testSimpleOpenClose() throws Exception {
168
168
169
169
logger .info ("--> trying to index into a closed index ..." );
170
170
try {
171
- client ().prepareIndex ("test" , "type1" , "1" ).setSource ("field1" , "value1" ).setTimeout ( "1s" ). execute ().actionGet ();
171
+ client ().prepareIndex ("test" , "type1" , "1" ).setSource ("field1" , "value1" ).execute ().actionGet ();
172
172
fail ();
173
173
} catch (IndexClosedException e ) {
174
174
// all is well
@@ -229,7 +229,7 @@ public void testJustMasterNodeAndJustDataNode() throws Exception {
229
229
logger .info ("--> create an index" );
230
230
client ().admin ().indices ().prepareCreate ("test" ).execute ().actionGet ();
231
231
232
- client ().prepareIndex ("test" , "type1" ).setSource ("field1" , "value1" ).setTimeout ( "100ms" ). execute ().actionGet ();
232
+ client ().prepareIndex ("test" , "type1" ).setSource ("field1" , "value1" ).execute ().actionGet ();
233
233
}
234
234
235
235
public void testTwoNodesSingleDoc () throws Exception {
0 commit comments