[go: nahoru, domu]

Skip to content

Commit

Permalink
test(storage): use long uidSpace for buckets (#10339)
Browse files Browse the repository at this point in the history
Short uids are too short for the number of tests we have now. Use a long space (6 digits instead of 2). Tested locally and ensured that bucket names are still within GCS limits (63 chars max).

Fixes #10338
Fixes #10337
Fixes #10336
Fixes #10335
Fixes #10334
Fixes #10333
  • Loading branch information
tritone committed Jun 5, 2024
1 parent b92406c commit fdb0958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func initIntegrationTest() func() error {
}

func initUIDsAndRand(t time.Time) {
uidSpace = uid.NewSpace("", &uid.Options{Time: t, Short: true})
uidSpace = uid.NewSpace("", &uid.Options{Time: t})
bucketName = testPrefix + uidSpace.New()
uidSpaceObjects = uid.NewSpace("obj", &uid.Options{Time: t})
grpcBucketName = grpcTestPrefix + uidSpace.New()
Expand Down

0 comments on commit fdb0958

Please sign in to comment.