Skip to content

Commit 6a6a1ca

Browse files
committed
[1.1.1]
ApiRunner close added
1 parent 4bdec49 commit 6a6a1ca

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/test/java/io/api/ApiRunner.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import io.api.etherscan.core.impl.EtherScanApi;
44
import io.api.etherscan.manager.impl.QueueManager;
55
import io.api.etherscan.model.EthNetwork;
6+
import org.junit.AfterClass;
67
import org.junit.Assert;
78

89
public class ApiRunner extends Assert {
@@ -45,4 +46,12 @@ public static EtherScanApi getApiRinkeby() {
4546
public static EtherScanApi getApiKovan() {
4647
return apiKovan;
4748
}
49+
50+
@AfterClass
51+
public static void cleanup() throws Exception {
52+
api.close();
53+
apiRopsten.close();
54+
apiRinkeby.close();
55+
apiKovan.close();
56+
}
4857
}

0 commit comments

Comments
 (0)