1
0
Fork 0
pull/1724/head
bethanyj28 2024-04-23 16:06:02 -04:00
parent 0159bbe7f2
commit 6e642f628f
2 changed files with 3 additions and 3 deletions

View File

@ -223,8 +223,8 @@ describe('download-artifact', () => {
)
// ensure path traversal was not possible
expect(fs.existsSync(path.join(fixtures.workspaceDir, 'x/etc/hosts'))).toBe(true);
expect(fs.existsSync(path.join(fixtures.workspaceDir, 'y/etc/hosts'))).toBe(true);
expect(fs.existsSync(path.join(fixtures.workspaceDir, 'x/etc/hosts'))).toBe(true)
expect(fs.existsSync(path.join(fixtures.workspaceDir, 'y/etc/hosts'))).toBe(true)
expect(response.downloadPath).toBe(fixtures.workspaceDir)
})

View File

@ -90,7 +90,7 @@ export async function streamExtractExternal(
reject(error)
})
.pipe(unzip.Extract({path: directory}))
.on('close', () => {
.on('close', () => {
clearTimeout(timer)
resolve()
})