Skip to content

Commit

Permalink
Attempt to fix the rety logic issue (#12917)
Browse files Browse the repository at this point in the history
  • Loading branch information
tateexon authored Apr 22, 2024
1 parent 28df745 commit 312f366
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions integration-tests/docker/test_env/cl_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,14 @@ func (n *ClNode) containerStartOrRestart(restartDb bool) error {
return fmt.Errorf("%s err: %w", ErrStartCLNodeContainer, err)
}

// retries can change the container name which affects urls used later
// so update to use the name that actually started
n.ContainerName, err = container.Name(context.Background())
if err != nil {
return err
}
n.ContainerName = strings.Replace(n.ContainerName, "/", "", -1)

clEndpoint, err := test_env.GetEndpoint(testcontext.Get(n.t), container, "http")
if err != nil {
return err
Expand Down

0 comments on commit 312f366

Please sign in to comment.