Skip to content

Commit

Permalink
chore: nits
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed May 31, 2022
1 parent 669ebc6 commit 6f6e93d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/_setupTeardown/npmInstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import {
detectExecutable,
} from '../../src/utils/index.js'

const executables = ['python2', 'python3', 'ruby', 'java']
const executables = ['java', 'python2', 'python3', 'ruby']

const testFolders = [
'../integration/docker/access-host/src',
'../scenario/apollo-server-lambda',
'../scenario/docker-in-docker',
'../scenario/docker-serverless-webpack-test',
'../scenario/serverless-webpack-test',
'../scenario/serverless-plugin-typescript-test',
'../scenario/serverless-webpack-test',
]

async function detectDocker() {
Expand Down
10 changes: 6 additions & 4 deletions tests/integration/_testHelpers/compressArtifact.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ export default async function compressArtifact(baseDir, dest, src = []) {
const destPath = resolve(baseDir, dest)
await ensureDir(dirname(destPath))

return new Promise((_resolve, reject) => {
return new Promise((res, rej) => {
const output = createWriteStream(destPath)
const archive = archiver('zip', {
zlib: { level: 9 },
zlib: {
level: 9,
},
})

output.on('open', async () => {
Expand All @@ -32,7 +34,7 @@ export default async function compressArtifact(baseDir, dest, src = []) {
await archive.finalize()
})

archive.on('error', (err) => reject(err))
output.on('close', () => _resolve())
archive.on('error', (err) => rej(err))
output.on('close', () => res())
})
}

0 comments on commit 6f6e93d

Please sign in to comment.