mirror of https://github.com/01-edu/public.git
fix crashing tests
This commit is contained in:
parent
396cd4a71f
commit
5b46cea96e
|
@ -25,7 +25,7 @@ export const setup = async ({ path }) => {
|
|||
return { data: fileContent }
|
||||
}
|
||||
|
||||
return { tmpPath: dir, run, encoded, decoded }
|
||||
return { tmpPath: dir, run }
|
||||
}
|
||||
|
||||
tests.push(async ({ path, eq, ctx }) => {
|
||||
|
|
|
@ -7,7 +7,7 @@ import { promisify } from 'util'
|
|||
const exec = promisify(cp.exec)
|
||||
|
||||
export const tests = []
|
||||
export const setup = async ({ path }) => {
|
||||
export const setup = async ({ path, between }) => {
|
||||
const randomFilesNumber = between(30, 6)
|
||||
const dir = `${tmpdir()}/tell-me-how-many`
|
||||
|
||||
|
|
Loading…
Reference in New Issue