This is an automated email from the ASF dual-hosted git repository.

lhotari pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git

commit 1fe3e5e7adf61ba91e7aa23f696d2237332721ce
Author: Lari Hotari <[email protected]>
AuthorDate: Mon Jun 1 23:59:29 2026 +0300

    [fix][test][branch-4.0] Fix PersistentMessageExpiryMonitorTest
    
    - master branch contains this change
      - the second parameter will also match a null value
---
 .../bookkeeper/mledger/impl/PersistentMessageExpiryMonitorTest.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/pulsar-broker/src/test/java/org/apache/bookkeeper/mledger/impl/PersistentMessageExpiryMonitorTest.java
 
b/pulsar-broker/src/test/java/org/apache/bookkeeper/mledger/impl/PersistentMessageExpiryMonitorTest.java
index 39aec66726e..e487d4c1c8a 100644
--- 
a/pulsar-broker/src/test/java/org/apache/bookkeeper/mledger/impl/PersistentMessageExpiryMonitorTest.java
+++ 
b/pulsar-broker/src/test/java/org/apache/bookkeeper/mledger/impl/PersistentMessageExpiryMonitorTest.java
@@ -24,7 +24,6 @@ import static org.mockito.ArgumentMatchers.anyLong;
 import static org.mockito.Mockito.doAnswer;
 import static org.mockito.Mockito.spy;
 import static org.testng.AssertJUnit.assertEquals;
-import java.util.Map;
 import java.util.concurrent.CompletableFuture;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.TimeUnit;
@@ -100,7 +99,7 @@ public class PersistentMessageExpiryMonitorTest extends 
ProducerConsumerBase {
                 }
             });
             return true;
-        }).when(spyCursor).asyncMarkDelete(any(Position.class), any(Map.class),
+        }).when(spyCursor).asyncMarkDelete(any(Position.class), any(),
                 any(AsyncCallbacks.MarkDeleteCallback.class), any());
         doAnswer(invocationOnMock -> {
             calledFindPositionCount.incrementAndGet();

Reply via email to