From fa5f304ac88038258b2a9777b928a9bdb4c3aaa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Thu, 25 Apr 2024 18:06:25 +0200 Subject: [PATCH] fix: wrong copy paste (#2515) Used that hardcoded string for testing locally --- port_forwarding.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/port_forwarding.go b/port_forwarding.go index 98c2e45154..586e710f3d 100644 --- a/port_forwarding.go +++ b/port_forwarding.go @@ -8,6 +8,7 @@ import ( "time" "github.com/docker/docker/api/types/container" + "github.com/google/uuid" "golang.org/x/crypto/ssh" "github.com/testcontainers/testcontainers-go/internal/core/network" @@ -25,7 +26,7 @@ const ( ) // sshPassword is a random password generated for the SSHD container. -var sshPassword = "123456" +var sshPassword = uuid.NewString() // exposeHostPorts performs all the necessary steps to expose the host ports to the container, leveraging // the SSHD container to create the tunnel, and the container lifecycle hooks to manage the tunnel lifecycle.