mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
fix test bug
This commit is contained in:
parent
d0a9c35c69
commit
1837d8a5fc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user