From 3e0b97169eb1d0b7dfd59275f36297ecdfe6ddc3 Mon Sep 17 00:00:00 2001 From: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> Date: Wed, 20 Mar 2024 23:04:51 +0300 Subject: [PATCH] fix name generator after rebase Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> --- ui/service_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/service_test.go b/ui/service_test.go index 2a002f52..a3cbc66e 100644 --- a/ui/service_test.go +++ b/ui/service_test.go @@ -35,7 +35,7 @@ var ( sdkerr = errors.NewSDKError(fmt.Errorf("sdk error")) emailSuffix = "@example.com" password = "$tr0ngPassw0rd" - namesgen = namegenerator.NewNameGenerator() + namesgen = namegenerator.NewGenerator() accessToken = strings.Repeat("a", 32) name = namesgen.Generate() id = generateID(&testing.T{}) @@ -61,7 +61,7 @@ var ( Identity: namesgen.Generate() + emailSuffix, Secret: password, }, - Tags: namesgen.GenerateNames(3), + Tags: namesgen.GenerateMultiple(3), Metadata: map[string]interface{}{ "key": "value", }, @@ -80,7 +80,7 @@ var ( Identity: generateID(&testing.T{}), Secret: generateID(&testing.T{}), }, - Tags: namesgen.GenerateNames(3), + Tags: namesgen.GenerateMultiple(3), Metadata: map[string]interface{}{ "key": "value", }, @@ -170,7 +170,7 @@ var ( Metadata: map[string]interface{}{ "key": "value", }, - Tags: namesgen.GenerateNames(3), + Tags: namesgen.GenerateMultiple(3), CreatedAt: time.Now().Add(-time.Hour), CreatedBy: generateID(&testing.T{}), UpdatedAt: time.Now(),