[TEST] Removed incorrect assertion (it is expected that the flush doesn't execute on all shard copies, because we don't wait for green status)

This commit is contained in:
Martijn van Groningen 2014-06-13 12:22:01 +02:00
parent 9620aa315e
commit 59ff05020f
1 changed files with 0 additions and 2 deletions

View File

@ -41,7 +41,6 @@ import java.util.Map;
import static org.elasticsearch.client.Requests.clusterHealthRequest; import static org.elasticsearch.client.Requests.clusterHealthRequest;
import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder; import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAllSuccessful;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNoFailures; import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNoFailures;
import static org.hamcrest.Matchers.*; import static org.hamcrest.Matchers.*;
@ -855,7 +854,6 @@ public class GetActionTests extends ElasticsearchIntegrationTest {
FlushResponse flushResponse = client().admin().indices().prepareFlush("my-index").get(); FlushResponse flushResponse = client().admin().indices().prepareFlush("my-index").get();
assertNoFailures(flushResponse); assertNoFailures(flushResponse);
assertAllSuccessful(flushResponse);
getResponse = client().prepareGet("my-index", "my-type1", "1").setFields(field).get(); getResponse = client().prepareGet("my-index", "my-type1", "1").setFields(field).get();
assertThat(getResponse.isExists(), equalTo(true)); assertThat(getResponse.isExists(), equalTo(true));