mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-29 15:28:06 +08:00
try ignore eperm
This commit is contained in:
@@ -193,7 +193,6 @@ describe('cp', () => {
|
||||
|
||||
describe('mv', () => {
|
||||
beforeAll(async () => {
|
||||
console.log('before')
|
||||
await io.rmRF(getTestTemp())
|
||||
})
|
||||
|
||||
@@ -201,13 +200,9 @@ describe('mv', () => {
|
||||
const root = path.join(getTestTemp(), ' mv_with_no_flags')
|
||||
const sourceFile = path.join(root, ' mv_source')
|
||||
const targetFile = path.join(root, ' mv_target')
|
||||
console.log('make')
|
||||
await io.mkdirP(root)
|
||||
console.log('write')
|
||||
await fs.writeFile(sourceFile, 'test file content', {encoding: 'utf8'})
|
||||
console.log('move')
|
||||
await io.mv(sourceFile, targetFile)
|
||||
console.log('read')
|
||||
expect(await fs.readFile(targetFile, {encoding: 'utf8'})).toBe(
|
||||
'test file content'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user