Simplify doc creation check in acked indexing test

This commit simplifies the doc creation check while indexing in the
acked indexing test.
This commit is contained in:
Jason Tedor 2016-03-28 12:46:54 -04:00
parent 14ba0c31b4
commit 37d739a3cd
1 changed files with 1 additions and 1 deletions

View File

@ -495,7 +495,7 @@ public class DiscoveryWithServiceDisruptionsIT extends ESIntegTestCase {
logger.trace("[{}] indexing id [{}] through node [{}] targeting shard [{}]", name, id, node, shard);
IndexResponse response =
client.prepareIndex("test", "type", id).setSource("{}").setTimeout(timeout).get(timeout);
assertThat(response.getVersion(), equalTo(1L));
assertTrue("doc [" + id + "] should have been created", response.isCreated());
ackedDocs.put(id, node);
logger.trace("[{}] indexed id [{}] through node [{}]", name, id, node);
} catch (ElasticsearchException e) {