From 312f366ede6f0f13ff18f5f54c4aebf654fd8704 Mon Sep 17 00:00:00 2001 From: Tate Date: Mon, 22 Apr 2024 16:18:56 -0600 Subject: [PATCH] Attempt to fix the rety logic issue (#12917) --- integration-tests/docker/test_env/cl_node.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/integration-tests/docker/test_env/cl_node.go b/integration-tests/docker/test_env/cl_node.go index 09da97b40f3..7eee9231b17 100644 --- a/integration-tests/docker/test_env/cl_node.go +++ b/integration-tests/docker/test_env/cl_node.go @@ -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