Remove unnecessary refresh after delete

This commit is contained in:
Igor Motov 2011-06-20 17:30:20 -04:00 committed by kimchy
parent d1ad747824
commit c9d619ea4f
1 changed files with 0 additions and 2 deletions

View File

@ -86,7 +86,6 @@ public class AliasRoutingTests extends AbstractNodesTests {
logger.info("--> deleting with no routing, should not delete anything");
client.prepareDelete("test", "type1", "1").setRefresh(true).execute().actionGet();
client.admin().indices().prepareRefresh().execute().actionGet();
for (int i = 0; i < 5; i++) {
assertThat(client.prepareGet("test", "type1", "1").execute().actionGet().exists(), equalTo(false));
assertThat(client.prepareGet("test", "type1", "1").setRouting("0").execute().actionGet().exists(), equalTo(true));
@ -95,7 +94,6 @@ public class AliasRoutingTests extends AbstractNodesTests {
logger.info("--> deleting with routing alias, should delete");
client.prepareDelete("alias0", "type1", "1").setRefresh(true).execute().actionGet();
client.admin().indices().prepareRefresh().execute().actionGet();
for (int i = 0; i < 5; i++) {
assertThat(client.prepareGet("test", "type1", "1").execute().actionGet().exists(), equalTo(false));
assertThat(client.prepareGet("test", "type1", "1").setRouting("0").execute().actionGet().exists(), equalTo(false));