From f6e065dc31cbd05e76e47facecf53efc82f93d90 Mon Sep 17 00:00:00 2001 From: Zhang Chao <80152403@qq.com> Date: Tue, 13 Feb 2024 10:10:44 +0800 Subject: [PATCH] Fix test failure for TestDocumentsWriterDeleteQueue.testUpdateDeleteSlices (#13089) --- .../org/apache/lucene/index/TestDocumentsWriterDeleteQueue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/test/org/apache/lucene/index/TestDocumentsWriterDeleteQueue.java b/lucene/core/src/test/org/apache/lucene/index/TestDocumentsWriterDeleteQueue.java index 95368c5c6ad..041f00c113a 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestDocumentsWriterDeleteQueue.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestDocumentsWriterDeleteQueue.java @@ -67,7 +67,7 @@ public class TestDocumentsWriterDeleteQueue extends LuceneTestCase { assertAllBetween(last2, j, bd2, ids); last2 = j + 1; } - assertEquals(j + 1, queue.numGlobalTermDeletes()); + assertEquals(uniqueValues.size(), queue.numGlobalTermDeletes()); } assertEquals(uniqueValues, bd1.deleteTerms.keySet()); assertEquals(uniqueValues, bd2.deleteTerms.keySet());