1212 */
1313package org .web3j .protocol .core ;
1414
15- import java .math .BigInteger ;
16- import java .util .Arrays ;
17- import java .util .List ;
18-
1915import org .junit .jupiter .api .BeforeAll ;
16+ import org .junit .jupiter .api .BeforeEach ;
2017import org .junit .jupiter .api .Disabled ;
2118import org .junit .jupiter .api .Test ;
22-
2319import org .web3j .EVMTest ;
2420import org .web3j .NodeType ;
2521import org .web3j .crypto .Credentials ;
6864import org .web3j .tx .gas .DefaultGasProvider ;
6965import org .web3j .utils .Numeric ;
7066
67+ import java .math .BigInteger ;
68+ import java .util .Arrays ;
69+ import java .util .List ;
70+
7171import static org .junit .jupiter .api .Assertions .assertEquals ;
7272import static org .junit .jupiter .api .Assertions .assertFalse ;
7373import 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