mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2026-05-04 22:26:11 +02:00
test(awssd): fix a flaky test (#5552)
This commit is contained in:
parent
026198429a
commit
c6ffc179a3
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user