File tree
Expand file treeCollapse file tree1 file changed
+3
-0
lines changed src/test/java/io/goodforgod/api/etherscan
Expand file treeCollapse file tree1 file changed
+3
-0
lines changed Original file line number | Diff line number | Diff line change |
---|
|
2 | 2 |
|
3 | 3 | import io.goodforgod.api.etherscan.manager.RequestQueueManager;
|
4 | 4 | import java.util.Map;
|
| 5 | + |
| 6 | +import io.goodforgod.api.etherscan.util.BasicUtils; |
5 | 7 | import org.junit.jupiter.api.AfterAll;
|
6 | 8 | import org.junit.jupiter.api.Assertions;
|
7 | 9 |
|
@@ -15,6 +17,7 @@ public class ApiRunner extends Assertions {
|
15 | 17 | static {
|
16 | 18 | API_KEY = System.getenv().entrySet().stream()
|
17 | 19 | .filter(e -> e.getKey().startsWith("ETHERSCAN_API_KEY"))
|
| 20 | +.filter(e -> !BasicUtils.isBlank(e.getValue())) |
18 | 21 | .map(Map.Entry::getValue)
|
19 | 22 | .findFirst()
|
20 | 23 | .orElse(DEFAULT_KEY);
|
|
You can’t perform that action at this time.
0 commit comments