Skip to content

Commit b34c4d1

Browse files
committed
fixup! chore(testutil): add testutil.GetRandomName that does not return duplicates
1 parent 10f163e commit b34c4d1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

testutil/names.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ import (
88
"github.com/moby/moby/pkg/namesgenerator"
99
)
1010

11-
var (
12-
n atomic.Int64
13-
)
11+
var n atomic.Int64
1412

1513
// GetRandomName returns a random name using moby/pkg/namesgenerator.
1614
// namesgenerator.GetRandomName exposes a retry parameter that appends

0 commit comments

Comments
 (0)