Skip to content

Commit

Permalink
test(client): increase timeout for 1 Windows/macOS test (#12317)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 committed Mar 14, 2022
1 parent 88b6265 commit 695537a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/sdk/src/__tests__/getPackedPackage.test.ts
Expand Up @@ -3,6 +3,13 @@ import path from 'path'

import { getPackedPackage } from './../getPackedPackage'

const isMacOrWindowsCI = Boolean(process.env.CI) && ['darwin', 'win32'].includes(process.platform)
if (isMacOrWindowsCI) {
jest.setTimeout(60_000)
} else {
jest.setTimeout(20_000)
}

describe('getPackedPackage', () => {
it('test argument vulnerability', async () => {
const outputDir = '/tmp/some-prisma-target-folder'
Expand All @@ -15,5 +22,5 @@ describe('getPackedPackage', () => {
} finally {
expect(fs.existsSync('/tmp/getPackedPackage-exploit')).toBe(false)
}
}, 20000)
})
})

0 comments on commit 695537a

Please sign in to comment.