Skip to content

Commit 3d980b1

Browse files
committed
Use randomUUID instead of fixed UUID
1 parent db83046 commit 3d980b1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tests/index-stats.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import { randomUUID } from "node:crypto";
12
import { afterAll, test } from "vitest";
23
import { assert, getClient } from "./utils/meilisearch-test-utils.js";
34

4-
const INDEX_UID = "7dfb3954-d408-4fb9-9cb9-acede082f650";
5+
const INDEX_UID = randomUUID();
56
const ms = await getClient("Master");
67
const index = ms.index(INDEX_UID);
78

tests/index.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
import { randomUUID } from "node:crypto";
12
import { test, afterAll } from "vitest";
23
import { getClient, assert } from "./utils/meilisearch-test-utils.js";
34
import { Index, type SwapIndexesPayload } from "../src/index.js";
45

5-
const INDEX_UID_ONE = "c5ffe1f8-7da8-4e47-a698-d4183f98a552";
6-
const INDEX_UID_TWO = "8be542e9-0f24-4c72-b4e9-4a23e7e29e9d";
6+
const INDEX_UID_ONE = randomUUID();
7+
const INDEX_UID_TWO = randomUUID();
78
const ms = await getClient("Master");
89
const index = ms.index(INDEX_UID_ONE);
910

0 commit comments

Comments
 (0)