From d900f48d38ae145b009bd683a0f4d71fc0a6efb1 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Fri, 7 Oct 2022 14:39:49 +0200 Subject: [PATCH] expose right porsts Signed-off-by: Kristoffer Dalby --- integration_general_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/integration_general_test.go b/integration_general_test.go index 4087c9db..500247df 100644 --- a/integration_general_test.go +++ b/integration_general_test.go @@ -189,10 +189,6 @@ func (s *IntegrationTestSuite) tailscaleContainer( Cmd: []string{ "tailscaled", "--tun=tsdev", }, - ExposedPorts: []string{"8080/tcp"}, - PortBindings: map[docker.Port][]docker.PortBinding{ - "8080/tcp": {{HostPort: "8080"}}, - }, } err := s.pool.RemoveContainerByName(hostname) @@ -255,6 +251,10 @@ func (s *IntegrationTestSuite) SetupSuite() { Mounts: []string{ fmt.Sprintf("%s/integration_test/etc:/etc/headscale", currentPath), }, + ExposedPorts: []string{"8080/tcp"}, + PortBindings: map[docker.Port][]docker.PortBinding{ + "8080/tcp": {{HostPort: "8080"}}, + }, Networks: []*dockertest.Network{&s.network}, Cmd: []string{"headscale", "serve"}, }