Skip to content

Commit

Permalink
RandomUUIDV4 should take ref to testing.TB
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Kolberg <[email protected]>
  • Loading branch information
amdprophet committed May 18, 2021
1 parent cfeddad commit 77ef2b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/testutil/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func CommandPath(s string, p ...string) string {

// RandomUUIDV4 takes a testing.TB and will attempt to generate a random
// Version 4 UUID. If an error is returned, a fatal testing error will occur.
func RandomUUIDV4(tb testing.TB) uuid.UUID {
func RandomUUIDV4(tb *testing.TB) uuid.UUID {
bytes, err := uuid.NewRandom()
if err != nil {
tb.Fatalf("failed to generate uuid: %s", err)
Expand Down

0 comments on commit 77ef2b9

Please sign in to comment.