Skip to content

Commit 7c7cbf5

Browse files
Attempt fix for redis/valkey tests
1 parent 6ecfa03 commit 7c7cbf5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/modules/redis/src/redis-container.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import fs from "fs";
2-
import os from "os";
32
import path from "path";
43
import { createClient } from "redis";
54
import { getImage } from "../../../testcontainers/src/utils/test-helper";
@@ -36,7 +35,7 @@ describe("RedisContainer", { timeout: 240_000 }, () => {
3635

3736
it("should reconnect with volume and persistence data", async () => {
3837
// persistentData {
39-
const sourcePath = fs.mkdtempSync(path.join(os.tmpdir(), "redis-"));
38+
const sourcePath = fs.mkdtempSync("redis-");
4039

4140
await using container = await new RedisContainer(IMAGE).withPassword("test").withPersistence(sourcePath).start();
4241

packages/modules/valkey/src/valkey-container.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import fs from "fs";
2-
import os from "os";
32
import path from "path";
43
import { createClient } from "redis";
54
import { getImage } from "../../../testcontainers/src/utils/test-helper";
@@ -36,7 +35,7 @@ describe("ValkeyContainer", { timeout: 240_000 }, () => {
3635

3736
it("should reconnect with volume and persistence data", async () => {
3837
// valkeyWithPersistentData {
39-
const sourcePath = fs.mkdtempSync(path.join(os.tmpdir(), "valkey-"));
38+
const sourcePath = fs.mkdtempSync("valkey-");
4039

4140
await using container = await new ValkeyContainer(IMAGE).withPassword("test").withPersistence(sourcePath).start();
4241

0 commit comments

Comments
 (0)