Skip to content

Commit 2e475d6

Browse files
authored
Do not set timeout for IndexRequests in GatewayIndexStateIT (#38147)
CI might not be fast enough to publish a dynamic mapping update within 100ms.
1 parent c1270e9 commit 2e475d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/test/java/org/elasticsearch/gateway/GatewayIndexStateIT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public void testSimpleOpenClose() throws Exception {
124124

125125
logger.info("--> trying to index into a closed index ...");
126126
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();
128128
fail();
129129
} catch (IndexClosedException e) {
130130
// all is well
@@ -168,7 +168,7 @@ public void testSimpleOpenClose() throws Exception {
168168

169169
logger.info("--> trying to index into a closed index ...");
170170
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();
172172
fail();
173173
} catch (IndexClosedException e) {
174174
// all is well
@@ -229,7 +229,7 @@ public void testJustMasterNodeAndJustDataNode() throws Exception {
229229
logger.info("--> create an index");
230230
client().admin().indices().prepareCreate("test").execute().actionGet();
231231

232-
client().prepareIndex("test", "type1").setSource("field1", "value1").setTimeout("100ms").execute().actionGet();
232+
client().prepareIndex("test", "type1").setSource("field1", "value1").execute().actionGet();
233233
}
234234

235235
public void testTwoNodesSingleDoc() throws Exception {

0 commit comments

Comments
 (0)