Skip to content

Conversation

@alixaxel
Copy link
Contributor

@alixaxel alixaxel commented Feb 4, 2018

Closes #1960 .

It also addresses the timeout in Puppeteer.launch(), as per the docs:

timeout Maximum time in milliseconds to wait for the browser instance to start.
Defaults to 30000 (30 seconds). Pass 0 to disable timeout.

@alixaxel
Copy link
Contributor Author

alixaxel commented Feb 5, 2018

Seems like AppVeyor is not playing nice with the should work with a rotated element unit test.

I've increased the test limit, but the problem remains, and it's not related to this PR: #1954 also fails.

Copy link
Contributor

@aslushnikov aslushnikov left a comment

Choose a reason for hiding this comment

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

@alixaxel awesome, thank you for the fix

*/
waitForFunction(pageFunction, options = {}, ...args) {
const timeout = options.timeout || 30000;
const timeout = (options.timeout != null) ? options.timeout : 30000;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Let's use helper.isNumber instead.

const timeout = helper.isNumber(options.timeout) ? options.timeout : 30000;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@aslushnikov Great, do you want me to rollback the eslint config to == null too?

Copy link
Contributor

Choose a reason for hiding this comment

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

Great, do you want me to rollback the eslint config to == null too?

@alixaxel yes, I like keeping it as strict as possible. Thanks!

test/test.js Outdated
};

const timeout = slowMo ? 0 : 10 * 1000;
const timeout = slowMo ? 0 : 15 * 1000;
Copy link
Contributor

Choose a reason for hiding this comment

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

unfortunately this doesn't help; for some reason appveyour/travis sometimes are very short on resources and take forever to run tests.

Let's split timeout changse out of the PR and discuss separately.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, on my local it was also timing out, after increasing it to 15secs it started working.

Must be the Chromium revision.

Copy link
Contributor

@aslushnikov aslushnikov left a comment

Choose a reason for hiding this comment

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

Thanks for taking time.

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.

2 participants