From 50d30fe0ba2152e829bb2c4d94a6cefef7d634f3 Mon Sep 17 00:00:00 2001 From: gtebrean <99179176+gtebrean@users.noreply.github.com> Date: Tue, 13 Aug 2024 21:21:41 +0300 Subject: [PATCH] Release 4.12.1 Signed-off-by: gtebrean <99179176+gtebrean@users.noreply.github.com> --- .../FastRawTransactionManagerIT.java | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/integration-tests/src/test/java/org/web3j/protocol/scenarios/FastRawTransactionManagerIT.java b/integration-tests/src/test/java/org/web3j/protocol/scenarios/FastRawTransactionManagerIT.java index 08b3a4575..b01279814 100644 --- a/integration-tests/src/test/java/org/web3j/protocol/scenarios/FastRawTransactionManagerIT.java +++ b/integration-tests/src/test/java/org/web3j/protocol/scenarios/FastRawTransactionManagerIT.java @@ -12,9 +12,20 @@ */ package org.web3j.protocol.scenarios; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.Iterator; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentLinkedQueue; +import java.util.concurrent.Future; + import com.carrotsearch.junitbenchmarks.BenchmarkOptions; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; + import org.web3j.EVMTest; import org.web3j.NodeType; import org.web3j.protocol.Web3j; @@ -27,16 +38,6 @@ import org.web3j.tx.response.QueuingTransactionReceiptProcessor; import org.web3j.utils.Convert; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Iterator; -import java.util.LinkedList; -import java.util.List; -import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.ConcurrentLinkedQueue; -import java.util.concurrent.Future; - import static org.junit.jupiter.api.Assertions.*; import static org.web3j.tx.TransactionManager.DEFAULT_POLLING_ATTEMPTS_PER_TX_HASH; @@ -74,11 +75,11 @@ public void testTransactionPolling() throws Exception { } for (int i = 0; - i < DEFAULT_POLLING_ATTEMPTS_PER_TX_HASH && !transactionReceipts.isEmpty(); - i++) { + i < DEFAULT_POLLING_ATTEMPTS_PER_TX_HASH && !transactionReceipts.isEmpty(); + i++) { for (Iterator> iterator = transactionReceipts.iterator(); - iterator.hasNext(); ) { + iterator.hasNext(); ) { Future transactionReceiptFuture = iterator.next(); if (transactionReceiptFuture.isDone()) { @@ -140,8 +141,7 @@ public void accept(TransactionReceipt transactionReceipt) { } @Override - public void exception(Exception exception) { - } + public void exception(Exception exception) {} }, DEFAULT_POLLING_ATTEMPTS_PER_TX_HASH, POLLING_FREQUENCY)); @@ -156,8 +156,8 @@ public void exception(Exception exception) { } for (int i = 0; - i < DEFAULT_POLLING_ATTEMPTS_PER_TX_HASH && !pendingTransactions.isEmpty(); - i++) { + i < DEFAULT_POLLING_ATTEMPTS_PER_TX_HASH && !pendingTransactions.isEmpty(); + i++) { for (TransactionReceipt transactionReceipt : transactionReceipts) { assertFalse(transactionReceipt.getBlockHash().isEmpty()); pendingTransactions.remove(transactionReceipt.getTransactionHash());