[TEST] an active shard might also be relocating

This commit is contained in:
Shay Banon 2014-07-20 10:44:24 +02:00
parent 1816951b6b
commit 2c07588a1a
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ public class CorruptedFileTest extends ElasticsearchIntegrationTest {
if (routing.getId() == shardRouting.getId()) {
assertThat(routing.state(), equalTo(ShardRoutingState.UNASSIGNED));
} else {
assertThat(routing.state(), equalTo(ShardRoutingState.STARTED));
assertThat(routing.state(), anyOf(equalTo(ShardRoutingState.RELOCATING), equalTo(ShardRoutingState.STARTED)));
}
}
}