Skip to content

Commit 58cc21c

Browse files
do not copy mysqlmsn folder to same origin
1 parent 3f01ade commit 58cc21c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/versions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ test('dummy test', () => {
6363

6464
afterAll(async () => {
6565
const originalPath = `${os.tmpdir()}/mysqlmsn`
66-
if (process.env.MOVE_MYSQLMSN_TO && fs.existsSync(originalPath)) {
66+
if (process.env.MOVE_MYSQLMSN_TO && fs.existsSync(originalPath) && originalPath !== process.env.MOVE_MYSQLMSN_TO) {
6767
await fsPromises.cp(originalPath, process.env.MOVE_MYSQLMSN_TO, {recursive: true, force: true, filter: source => !source.includes('.sock')})
6868
await fsPromises.rm(originalPath, {force: true, recursive: true, maxRetries: 50, retryDelay: 100})
6969
}

0 commit comments

Comments
 (0)