diff --git a/tests/integration/utils.go b/tests/integration/utils.go index aae52c2..b9cda7b 100644 --- a/tests/integration/utils.go +++ b/tests/integration/utils.go @@ -66,8 +66,8 @@ type user struct { } func getBucketName() string { - bcktCount.Add(1) - return fmt.Sprintf("test-bucket-%v", bcktCount.Load()) + val := bcktCount.Add(1) + return fmt.Sprintf("test-bucket-%v", val) } func getUser(role string) user {