From 0a47d694be1950fa274441b9d05d211c8a7cbc06 Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Fri, 4 Nov 2022 00:05:01 +0100 Subject: [PATCH] Return the real port of the container --- integration/hsic/hsic.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/integration/hsic/hsic.go b/integration/hsic/hsic.go index ce915a9..5e500d5 100644 --- a/integration/hsic/hsic.go +++ b/integration/hsic/hsic.go @@ -179,9 +179,7 @@ func (t *HeadscaleInContainer) GetIP() string { } func (t *HeadscaleInContainer) GetPort() string { - portProto := fmt.Sprintf("%d/tcp", t.port) - - return t.container.GetPort(portProto) + return fmt.Sprintf("%d", t.port) } func (t *HeadscaleInContainer) GetHealthEndpoint() string {