fix test bug

This commit is contained in:
Simon Willnauer 2015-02-20 23:16:23 +01:00
parent d0a9c35c69
commit 1837d8a5fc
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ public class NodeEnvironmentTests extends ElasticsearchTestCase {
List<ShardLock> locks = env.lockAllForIndex(new Index("foo"), settings, randomIntBetween(0, 10));
try {
env.shardLock(new ShardId("foo", randomIntBetween(0, 1)));
env.shardLock(new ShardId("foo", 0));
fail("shard is locked");
} catch (LockObtainFailedException ex) {
// expected