Skip to content

Commit ec5102c

Browse files
authored
chore: Use provided SPACE_NAME for list-operations.test.ts (#1817)
1 parent 1a12e86 commit ec5102c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/patterns/integration/list-operations.test.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,11 @@ describe("list-operations simple test", () => {
1515
let identity: Identity;
1616
let cc: CharmsController;
1717
let charm: CharmController;
18-
let spaceName: string;
1918

2019
beforeAll(async () => {
2120
identity = await Identity.generate({ implementation: "noble" });
22-
// Use a unique space name to avoid conflicts between test runs
23-
spaceName = `${SPACE_NAME}-${Date.now()}-${
24-
Math.random().toString(36).slice(2)
25-
}`;
2621
cc = await CharmsController.initialize({
27-
spaceName: spaceName,
22+
spaceName: SPACE_NAME,
2823
apiUrl: new URL(API_URL),
2924
identity: identity,
3025
});
@@ -48,7 +43,7 @@ describe("list-operations simple test", () => {
4843
const page = shell.page();
4944
await shell.goto({
5045
frontendUrl: FRONTEND_URL,
51-
spaceName: spaceName,
46+
spaceName: SPACE_NAME,
5247
charmId: charm.id,
5348
identity,
5449
});

0 commit comments

Comments
 (0)