From 9bdbba23f8ca907efc1114cbd390e6263493ca92 Mon Sep 17 00:00:00 2001 From: Tanguy Leroux Date: Mon, 26 Nov 2018 13:43:46 +0100 Subject: [PATCH] [Tests] Fix IndexShardTests.testAcquirePrimaryAllOperationsPermits() This test fails on CI because of an inappropriate assertion, which is I think a leftover and has no real value. --- .../test/java/org/elasticsearch/index/shard/IndexShardTests.java | 1 - 1 file changed, 1 deletion(-) diff --git a/server/src/test/java/org/elasticsearch/index/shard/IndexShardTests.java b/server/src/test/java/org/elasticsearch/index/shard/IndexShardTests.java index 69a04d2739550..970e8ed5c9fab 100644 --- a/server/src/test/java/org/elasticsearch/index/shard/IndexShardTests.java +++ b/server/src/test/java/org/elasticsearch/index/shard/IndexShardTests.java @@ -667,7 +667,6 @@ public void onFailure(final Exception e) { } else { indexShard.acquireAllPrimaryOperationsPermits(future, TimeValue.timeValueHours(1L)); } - assertEquals(0, indexShard.getActiveOperationsCount()); }); threads[threadId].start(); }