Skip to content

Commit 074d280

Browse files
committed
Whitespace
1 parent 61f41c9 commit 074d280

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/authz/accesscontrol/DocumentSubsetBitsetCacheTests.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,21 +551,18 @@ public void testHitsMissesAndEvictionsStats() throws Exception {
551551
expectedStats.put("misses", 1L);
552552
expectedStats.put("memory", EXPECTED_BYTES_PER_BIT_SET + "b");
553553
expectedStats.put("memory_in_bytes", EXPECTED_BYTES_PER_BIT_SET);
554-
555554
assertThat(cache.usageStats(), equalTo(expectedStats));
556555

557556
// second same lookup - hit
558557
final BitSet bitSet1Again = cache.getBitSet(query1, leafContext);
559558
assertThat(bitSet1Again, sameInstance(bitSet1));
560-
561559
expectedStats.put("hits", 1L);
562560
assertThat(cache.usageStats(), equalTo(expectedStats));
563561

564562
// second query - miss, should evict the first one
565563
final Query query2 = QueryBuilders.termQuery("field-2", "value-2").toQuery(searchExecutionContext);
566564
final BitSet bitSet2 = cache.getBitSet(query2, leafContext);
567565
assertThat(bitSet2, notNullValue());
568-
569566
// eviction callback calls `get` on the cache, asynchronously, which updates the stats.
570567
// so assertion is current state of the code, rather than the expected state.
571568
// issue: https://github.com/elastic/elasticsearch/issues/132842

0 commit comments

Comments
 (0)