solution: refactor Ethereum WS Connection to a separate class to improve logging and debugging

This commit is contained in:
Igor Artamonov
2021-12-17 20:47:04 -05:00
parent 0bdb4a3a75
commit 6cbb3a6fe1
7 changed files with 409 additions and 371 deletions

View File

@@ -10,7 +10,7 @@ import spock.lang.Specification
import java.time.Duration
class EthereumWsFactoryRealSpec extends Specification {
class WsConnectionRealSpec extends Specification {
static SLEEP = 500
@@ -18,7 +18,7 @@ class EthereumWsFactoryRealSpec extends Specification {
@Shared
MockWSServer server
@Shared
EthereumWsFactory.EthereumWs conn
WsConnection conn
def setup() {
if (System.getenv("CI") == "true") {

View File

@@ -33,7 +33,7 @@ import java.time.Duration
import java.time.Instant
import java.time.temporal.ChronoUnit
class EthereumWsFactorySpec extends Specification {
class WsConnectionSpec extends Specification {
def "Fetch block"() {
setup: