Skip to content

Commit 45dcf26

Browse files
authored
Merge pull request #2200 from LFDT-web3j/disable_tests
disable tests
2 parents 3bb326c + 82862f2 commit 45dcf26

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

core/src/test/java/org/web3j/protocol/core/ResponseTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import java.util.Map;
2323
import java.util.Optional;
2424

25+
import org.junit.jupiter.api.Disabled;
2526
import org.junit.jupiter.api.Test;
2627

2728
import org.web3j.protocol.ResponseTester;
@@ -330,6 +331,7 @@ void testEthMining() {
330331
}
331332

332333
@Test
334+
@Disabled
333335
void testEthHashrate() {
334336
buildResponse(
335337
"{\n"
@@ -2019,6 +2021,7 @@ void testEthGetProof() {
20192021
}
20202022

20212023
@Test
2024+
@Disabled
20222025
void testEthGetWork() {
20232026

20242027
buildResponse(

integration-tests/src/test/java/org/web3j/protocol/core/CoreIT.java

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,10 @@
1212
*/
1313
package org.web3j.protocol.core;
1414

15-
import java.math.BigInteger;
16-
import java.util.Arrays;
17-
import java.util.List;
18-
1915
import org.junit.jupiter.api.BeforeAll;
16+
import org.junit.jupiter.api.BeforeEach;
2017
import org.junit.jupiter.api.Disabled;
2118
import org.junit.jupiter.api.Test;
22-
2319
import org.web3j.EVMTest;
2420
import org.web3j.NodeType;
2521
import org.web3j.crypto.Credentials;
@@ -68,6 +64,10 @@
6864
import org.web3j.tx.gas.DefaultGasProvider;
6965
import org.web3j.utils.Numeric;
7066

67+
import java.math.BigInteger;
68+
import java.util.Arrays;
69+
import java.util.List;
70+
7171
import static org.junit.jupiter.api.Assertions.assertEquals;
7272
import static org.junit.jupiter.api.Assertions.assertFalse;
7373
import static org.junit.jupiter.api.Assertions.assertNotNull;
@@ -91,6 +91,11 @@ public static void setUp(
9191
CoreIT.config = new TestnetConfig(web3j, transactionManager, gasProvider);
9292
}
9393

94+
@BeforeEach
95+
public void setUp() throws Exception {
96+
Thread.sleep(1000);
97+
}
98+
9499
@Test
95100
public void testWeb3ClientVersion() throws Exception {
96101
Web3ClientVersion web3ClientVersion = web3j.web3ClientVersion().send();
@@ -141,6 +146,7 @@ public void testEthMining() throws Exception {
141146
}
142147

143148
@Test
149+
@Disabled
144150
public void testEthHashrate() throws Exception {
145151
EthHashrate ethHashrate = web3j.ethHashrate().send();
146152
assertEquals(1, ethHashrate.getHashrate().compareTo(BigInteger.ONE));
@@ -490,9 +496,9 @@ public void testEthGetProof() throws Exception {
490496
}
491497

492498
@Test
499+
@Disabled
493500
public void testEthGetWork() throws Exception {
494501
EthGetWork ethGetWork = web3j.ethGetWork().send();
495-
496502
if (ethGetWork.hasError()) {
497503
assertEquals(ethGetWork.getError().getMessage(), "No mining work available yet");
498504
} else {

0 commit comments

Comments
 (0)