Skip to content

Commit 773d10a

Browse files
committed
fix: test tmp folder
1 parent 4f757cb commit 773d10a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/integration/tools/mongodb/mongodbHelpers.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@ export function setupMongoDBIntegrationTest(integration: IntegrationTest, userCo
3939
mongoClient = undefined;
4040
});
4141

42-
const tmpDir = path.join(__dirname, "..", "tmp");
43-
4442
beforeAll(async function () {
4543
// Downloading Windows executables in CI takes a long time because
4644
// they include debug symbols...
45+
const tmpDir = path.join(__dirname, "..", "..", "..", "tmp");
4746
await fs.mkdir(tmpDir, { recursive: true });
4847

4948
// On Windows, we may have a situation where mongod.exe is not fully released by the OS
@@ -79,7 +78,6 @@ export function setupMongoDBIntegrationTest(integration: IntegrationTest, userCo
7978
afterAll(async function () {
8079
await mongoCluster?.close();
8180
mongoCluster = undefined;
82-
await fs.rmdir(tmpDir, { recursive: true });
8381
});
8482

8583
const getConnectionString = () => {

0 commit comments

Comments
 (0)