Skip to content

Commit

Permalink
wait 10 sec
Browse files Browse the repository at this point in the history
Signed-off-by: gtebrean <99179176+gtebrean@users.noreply.github.com>
  • Loading branch information
gtebrean committed Feb 20, 2025
1 parent f757983 commit ab164b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public void testEthCall(Web3j web3j, ContractGasProvider gasProvider) throws Exc
}

@Test
public void testEthEstimateGas(Web3j web3j, ContractGasProvider gasProvider) {
public void testEthEstimateGas(Web3j web3j, ContractGasProvider gasProvider) throws InterruptedException {
org.web3j.protocol.core.methods.request.Transaction transaction =
org.web3j.protocol.core.methods.request.Transaction.createContractTransaction(
config.validAccount(),
Expand All @@ -307,6 +307,8 @@ public void testEthEstimateGas(Web3j web3j, ContractGasProvider gasProvider) {
} catch (Exception e) {
throw new IllegalStateException("error at deploy", e);
}
wait(10000);

try {
assertEquals(ethEstimateGas.getAmountUsed().signum(), 1);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public void testContractFunctionalities() throws Exception {

assertEquals(humanStandardToken.name().send(), TOKEN_NAME);

wait(10000);
assertNotNull(humanStandardToken.transfer(BOB.getAddress(), BigInteger.ONE).send());
assertEquals(humanStandardToken.balanceOf(BOB.getAddress()).send(), BigInteger.TWO);
}
Expand Down

0 comments on commit ab164b6

Please # to comment.