From 07b8ae20aceebfe77d2c351f73b2536c2664af10 Mon Sep 17 00:00:00 2001 From: JayLiu <38887641+luky116@users.noreply.github.com> Date: Sun, 19 May 2024 20:43:05 +0800 Subject: [PATCH] change pos l1 listen port (#1339) Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com> --- common/testcontainers/testcontainers.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/common/testcontainers/testcontainers.go b/common/testcontainers/testcontainers.go index 327354d1f..aa6099035 100644 --- a/common/testcontainers/testcontainers.go +++ b/common/testcontainers/testcontainers.go @@ -104,11 +104,7 @@ func (t *TestcontainerApps) StartPoSL1Container() error { if t.poSL1Container, err = compose.NewDockerCompose([]string{dockerComposeFile}...); err != nil { return err } - err = t.poSL1Container.WaitForService("geth", wait.NewHTTPStrategy("/"). - WithPort("8545/tcp"). - WithStartupTimeout(15*time.Second)). - Up(context.Background()) - if err != nil { + if err = t.poSL1Container.WaitForService("geth", wait.ForListeningPort("8545").WithStartupTimeout(15*time.Second)).Up(context.Background()); err != nil { t.poSL1Container = nil return fmt.Errorf("failed to start PoS L1 container: %w", err) }