change pos l1 listen port (#1339)

Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com>
This commit is contained in:
JayLiu
2024-05-19 20:43:05 +08:00
committed by GitHub
parent 934ea33443
commit 07b8ae20ac

View File

@@ -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)
}