Do not set timeout for IndexRequests in GatewayIndexStateIT (#38147)

CI might not be fast enough to publish a dynamic mapping update within 100ms.
This commit is contained in:
Nhat Nguyen 2019-02-01 09:30:03 -05:00 committed by GitHub
parent c1270e97b0
commit 2e475d63f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ public class GatewayIndexStateIT extends ESIntegTestCase {
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
@ -168,7 +168,7 @@ public class GatewayIndexStateIT extends ESIntegTestCase {
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
@ -229,7 +229,7 @@ public class GatewayIndexStateIT extends ESIntegTestCase {
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 {