Skip to content

Commit

Permalink
fix geth healthcheck (smartcontractkit#10209)
Browse files Browse the repository at this point in the history
  • Loading branch information
skudasov authored Aug 16, 2023
1 parent cab2071 commit 388c8f0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions integration-tests/docker/test_env/geth.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package test_env
import (
"context"
"fmt"
"time"

"os"

"github.com/ethereum/go-ethereum/accounts"
Expand All @@ -16,6 +14,7 @@ import (
"github.com/smartcontractkit/chainlink/integration-tests/utils/templates"
tc "github.com/testcontainers/testcontainers-go"
tcwait "github.com/testcontainers/testcontainers-go/wait"
"time"
)

const (
Expand Down Expand Up @@ -159,9 +158,8 @@ func (g *Geth) getGethContainerRequest(networks []string) (*tc.ContainerRequest,
Image: "ethereum/client-go:stable",
ExposedPorts: []string{"8544/tcp", "8545/tcp"},
Networks: networks,
WaitingFor: tcwait.ForHTTP("/").
WithPort("8544/tcp").
WithStartupTimeout(120 * time.Second).
WaitingFor: tcwait.ForListeningPort("8545/tcp").
WithStartupTimeout(60 * time.Second).
WithPollInterval(1 * time.Second),
Entrypoint: []string{"sh", "./root/init.sh",
"--dev",
Expand Down

0 comments on commit 388c8f0

Please sign in to comment.