From c6ffc179a37e1d40ac486efecfbe273ddbcc6528 Mon Sep 17 00:00:00 2001 From: vflaux <38909103+vflaux@users.noreply.github.com> Date: Sun, 22 Jun 2025 11:54:52 +0200 Subject: [PATCH] test(awssd): fix a flaky test (#5552) --- provider/awssd/fixtures_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/provider/awssd/fixtures_test.go b/provider/awssd/fixtures_test.go index e404074cb..9b9408a43 100644 --- a/provider/awssd/fixtures_test.go +++ b/provider/awssd/fixtures_test.go @@ -19,9 +19,7 @@ package awssd import ( "context" "errors" - "math/rand" "reflect" - "strconv" "testing" "time" @@ -58,7 +56,7 @@ type AWSSDClientStub struct { func (s *AWSSDClientStub) CreateService(_ context.Context, input *servicediscovery.CreateServiceInput, _ ...func(*servicediscovery.Options)) (*servicediscovery.CreateServiceOutput, error) { srv := &types.Service{ - Id: aws.String(strconv.Itoa(rand.Intn(10000))), + Id: input.Name, DnsConfig: input.DnsConfig, Name: input.Name, Description: input.Description,