Skip to content

Commit 3f01ade

Browse files
do not copy socket files and increase maxRetries for rm
1 parent 07984ef commit 3f01ade

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/versions.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ test('dummy test', () => {
6464
afterAll(async () => {
6565
const originalPath = `${os.tmpdir()}/mysqlmsn`
6666
if (process.env.MOVE_MYSQLMSN_TO && fs.existsSync(originalPath)) {
67-
await fsPromises.cp(originalPath, process.env.MOVE_MYSQLMSN_TO, {recursive: true, force: true})
68-
await fsPromises.rm(originalPath, {force: true, recursive: true})
67+
await fsPromises.cp(originalPath, process.env.MOVE_MYSQLMSN_TO, {recursive: true, force: true, filter: source => !source.includes('.sock')})
68+
await fsPromises.rm(originalPath, {force: true, recursive: true, maxRetries: 50, retryDelay: 100})
6969
}
7070
})

0 commit comments

Comments
 (0)