From cbc70160a1f930acea56f28db1fb0b41273515a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Wed, 6 Nov 2024 22:50:44 +0100 Subject: [PATCH] chore: simplify fmt.Sprintf Co-authored-by: Steven Hartland --- modules/localstack/v2/s3_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/localstack/v2/s3_test.go b/modules/localstack/v2/s3_test.go index 5452bff822..c04a3c271a 100644 --- a/modules/localstack/v2/s3_test.go +++ b/modules/localstack/v2/s3_test.go @@ -68,7 +68,7 @@ func s3Client(ctx context.Context, l *localstack.LocalStackContainer) (*s3.Clien // reference: https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/endpoints/#with-both client := s3.NewFromConfig(awsCfg, func(o *s3.Options) { - o.BaseEndpoint = aws.String(fmt.Sprintf("http://%s:%d", host, mappedPort.Int())) + o.BaseEndpoint = aws.String("http://"+ host +":"+ mappedPort.Port())) o.EndpointResolverV2 = &resolverV2{} o.UsePathStyle = true })