Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix multiple.parallel.chunks #1238

Merged
merged 2 commits into from
Oct 4, 2018
Merged

fix multiple.parallel.chunks #1238

merged 2 commits into from
Oct 4, 2018

Conversation

ngadiyak
Copy link
Contributor

@ngadiyak ngadiyak commented Oct 2, 2018

if multiple.parallel.chunks param in codecept.conf.js set as environment variable, codeceptjs throw "chunks is neither a finite number or a valid function".

example:

    multiple: {
        parallel: {
            chunks: process.env.CHUNKS || 20,
            ...
        }

if multiple.parallel.chunks param in config set as environment variable, than codeceptjs throw "chunks is neither a finite number or a valid function".
@@ -62,7 +62,7 @@ const createChunks = (config, pattern) => {
let chunks = [];
if (typeof config.chunks === 'function') {
chunks = config.chunks.call(this, files);
} else if (typeof config.chunks === 'number') {
} else if (typeof config.chunks === 'number' || typeof config.chunks === 'string' ) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be no spaces inside this paren space-in-parens

@DavertMik
Copy link
Contributor

Thanks!

@DavertMik DavertMik merged commit fc36a8d into codeceptjs:master Oct 4, 2018
@ngadiyak ngadiyak deleted the patch-1 branch October 4, 2018 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants