integration tests for when we have direct proxy forwarding of eth_calls turned on

This commit is contained in:
i-norden
2021-12-29 15:01:09 -06:00
parent f9a31ed862
commit b56215db3f
2 changed files with 452 additions and 0 deletions
+7
View File
@@ -3,6 +3,8 @@ package integration_test
import (
"context"
"math/big"
"os"
"strconv"
"time"
"github.com/ethereum/go-ethereum"
@@ -27,6 +29,11 @@ var (
)
var _ = Describe("Integration test", func() {
directProxyEthCalls, err := strconv.ParseBool(os.Getenv("ETH_FORWARD_ETH_CALLS"))
Expect(err).To(BeNil())
if directProxyEthCalls {
Skip("skipping no-direct-proxy-forwarding integration tests")
}
gethHttpPath := "http://127.0.0.1:8545"
gethClient, err := ethclient.Dial(gethHttpPath)
Expect(err).ToNot(HaveOccurred())