Skip to content

Commit 1a23472

Browse files
authored
test(middleware-sdk-s3): increase bucket name randomness (#7205)
1 parent b34b388 commit 1a23472

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/middleware-sdk-s3/src/throw-200-exceptions.e2e.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { S3 } from "@aws-sdk/client-s3";
2-
import { GetCallerIdentityCommandOutput, STS } from "@aws-sdk/client-sts";
2+
import { type GetCallerIdentityCommandOutput, STS } from "@aws-sdk/client-sts";
33
import { afterAll, beforeAll, describe, test as it } from "vitest";
44

55
describe("S3 throw 200 exceptions", () => {
@@ -10,7 +10,7 @@ describe("S3 throw 200 exceptions", () => {
1010
const stsClient = new STS(config);
1111

1212
const alphabet = "abcdefghijklmnopqrstuvwxyz";
13-
const randId = alphabet[(Math.random() * alphabet.length) | 0] + alphabet[(Math.random() * alphabet.length) | 0];
13+
const randId = Array.from({ length: 8 }, () => alphabet[(Math.random() * alphabet.length) | 0]).join("");
1414
let Bucket: string;
1515
let callerID: GetCallerIdentityCommandOutput;
1616

0 commit comments

Comments
 (0)