Skip to content

Commit f65b9bc

Browse files
gaoran10eolivelli
authored andcommitted
remove useless code
1 parent bda210b commit f65b9bc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/src/test/java/io/streamnative/pulsar/handlers/kop/TransactionTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import io.streamnative.pulsar.handlers.kop.storage.PartitionLog;
3535
import io.streamnative.pulsar.handlers.kop.storage.ProducerStateManager;
3636
import io.streamnative.pulsar.handlers.kop.storage.ProducerStateManagerSnapshot;
37-
import io.streamnative.pulsar.handlers.kop.storage.ProducerStateManagerSnapshotBuffer;
3837
import io.streamnative.pulsar.handlers.kop.storage.TxnMetadata;
3938
import java.lang.reflect.Method;
4039
import java.time.Duration;
@@ -85,7 +84,6 @@
8584
import org.apache.kafka.common.serialization.StringSerializer;
8685
import org.apache.pulsar.common.naming.TopicName;
8786
import org.awaitility.Awaitility;
88-
import org.mockito.Mockito;
8987
import org.testng.Assert;
9088
import org.testng.annotations.AfterClass;
9189
import org.testng.annotations.AfterMethod;
@@ -1042,7 +1040,7 @@ public void testPurgeAbortedTx(boolean takeSnapshotBeforeRecovery) throws Except
10421040
}
10431041

10441042
@Test(timeOut = 10_000)
1045-
public void testAbortedPurgeIntervalConfiguration() throws Exception {
1043+
public void testAbortedTxnIndexPurgeIntervalConfiguration() throws Exception {
10461044
Class<ProducerStateManager> clazz = ProducerStateManager.class;
10471045
Method maybePurgeMethod = clazz.getDeclaredMethod("maybePurgeAbortedTx");
10481046
maybePurgeMethod.setAccessible(true);
@@ -1069,7 +1067,7 @@ private ProducerStateManager buildProducerStateManager(Method updateAbortedTxnsP
10691067
ProducerStateManager producerStateManager = new ProducerStateManager(
10701068
"aborted-txn-index-purge-interval-test-" + RandomStringUtils.randomAlphanumeric(5),
10711069
UUID.randomUUID().toString(),
1072-
Mockito.mock(ProducerStateManagerSnapshotBuffer.class),
1070+
null,
10731071
1000 * 30,
10741072
purgeAbortedTxnIntervalSec);
10751073
producerStateManager.updateMapEndOffset(100L);

0 commit comments

Comments
 (0)