Skip to content

Commit 371476a

Browse files
authored
Update testutil/names.go
no need to double-inc
1 parent 512a26c commit 371476a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

testutil/names.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ func GetRandomName(t testing.TB) string {
3131
func GetRandomNameHyphenated(t testing.TB) string {
3232
t.Helper()
3333
name := namesgenerator.GetRandomName(0)
34-
name = strings.ReplaceAll(name, "_", "-")
35-
return incSuffix(name, n.Add(1), maxNameLen)
34+
return strings.ReplaceAll(name, "_", "-")
3635
}
3736

3837
func incSuffix(s string, num int64, maxLen int) string {

0 commit comments

Comments
 (0)