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

Fixture setup timeout should be same as Mocha's #10140

Merged
merged 3 commits into from Jun 26, 2017

Conversation

dreamofabear
Copy link

Fixes #9906 (hopefully).

@@ -152,7 +152,7 @@ export function createFixtureIframe(fixture, initialIframeHeight, opt_beforeLoad
};
let timeout = setTimeout(function() {
reject(new Error('Timeout waiting for elements to start loading.'));
}, 2000);
}, process.env.TEST_TIMEOUT);
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know if process is propagated to the browser by Karma. We do a few things like this elsewhere, but I can't find it on my phone.

Copy link
Author

Choose a reason for hiding this comment

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

It worked for me locally but I don't see precedence for this. Changed it to use ampTestRuntimeConfig instead.

@dreamofabear dreamofabear merged commit 9286491 into ampproject:master Jun 26, 2017
@dreamofabear dreamofabear deleted the fixture-timeout branch June 26, 2017 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants